Skip to content
Permalink
Browse files

#9264: Fixed documentation link references in the code.

  • Loading branch information...
fredck committed Nov 19, 2012
1 parent 1725b62 commit 8a841774d5894e03df576af0a9299b600ec4d71e
@@ -30,7 +30,7 @@ <h1 class="samples">
<p>
It is also possible to set a maximum height for the editor window. Once CKEditor
editing area reaches the value in pixels specified in the
<code><a class="samples" href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.config-cfg-autoGrow_maxHeight">autoGrow_maxHeight</a></code>
<code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-autoGrow_maxHeight">autoGrow_maxHeight</a></code>
configuration setting, scrollbars will be added and the editor window will no longer expand.
</p>
<p>
@@ -19,7 +19,7 @@ CKEDITOR.plugins.add( 'devtools', {
(function() {
function defaultCallback( editor, dialog, element, tabName ) {
var lang = editor.lang.devtools,
link = '<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.' +
link = '<a href="http://docs.ckeditor.com/#!/api/CKEDITOR.dialog.definition.' +
( element ? ( element.type == 'text' ? 'textInput' : element.type ) : 'content' ) +
'.html" target="_blank">' + ( element ? element.type : 'content' ) + '</a>',
str = '<h2>' + lang.title + '</h2>' +
@@ -117,7 +117,7 @@ CKEDITOR.plugins.add( 'devtools', {
* // Show dialog window name, tab ID, and element ID.
* config.devtools_textCallback = function( editor, dialog, element, tabName ) {
* var lang = editor.lang.devtools,
* link = '<a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dialog.definition.' +
* link = '<a href="http://docs.ckeditor.com/#!/api/CKEDITOR.dialog.definition.' +
* ( element ? ( element.type == 'text' ? 'textInput' : element.type ) : 'content' ) +
* '.html" target="_blank">' + ( element ? element.type : 'content' ) + '</a>',
* str =
@@ -23,7 +23,7 @@ <h1 class="samples">
<strong>Developer Tools</strong> (<code>devtools</code>) plugin that displays
information about dialog window elements, including the name of the dialog window,
tab, and UI element. Please note that the tooltip also contains a link to the
<a href="http://nightly-v4.ckeditor.com/ckeditor_api/">CKEditor JavaScript API</a>
<a href="http://docs.ckeditor.com/#!/api">CKEditor JavaScript API</a>
documentation for each of the selected elements.
</p>
<p>
@@ -139,7 +139,7 @@ <h1 class="samples">
<div class="description">
<p>
This sample shows how to use the
<a class="samples" href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.dialog">CKEditor Dialog API</a>
<a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.dialog">CKEditor Dialog API</a>
to customize CKEditor dialog windows without changing the original editor code.
The following customizations are being done in the example below:
</p>
@@ -41,8 +41,8 @@ <h1 class="samples">
<p>
This sample shows how to configure the <em>Enter</em> and <em>Shift+Enter</em> keys
to perform actions specified in the
<a class="samples" href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.config-cfg-enterMode"><code>enterMode</code></a>
and <a class="samples" href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.config-cfg-shiftEnterMode"><code>shiftEnterMode</code></a>
<a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-enterMode"><code>enterMode</code></a>
and <a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-shiftEnterMode"><code>shiftEnterMode</code></a>
parameters, respectively.
You can choose from the following options:
</p>
@@ -26,7 +26,7 @@ <h1 class="samples">

<p>Since CKEditor 4 there are two ways to configure toolbar buttons.</p>

<h2 class="samples">By <a href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.config-cfg-toolbar">config.toolbar</a></h2>
<h2 class="samples">By <a href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-toolbar">config.toolbar</a></h2>

<p>
You can explicitly define which buttons are displayed in which groups and in which order.
@@ -46,7 +46,7 @@ <h2 class="samples">By <a href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/a
]
});</pre>

<h2 class="samples">By <a href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.config-cfg-toolbarGroups">config.toolbarGroups</a></h2>
<h2 class="samples">By <a href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-toolbarGroups">config.toolbarGroups</a></h2>

<p>
You can define which groups of buttons (like e.g. <code>basicstyles</code>, <code>clipboard</code>
@@ -30,7 +30,7 @@
if ( editor.mode == 'wysiwyg' )
{
// Insert HTML code.
// http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor-method-insertHtml
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertHtml
editor.insertHtml( value );
}
else
@@ -46,7 +46,7 @@
if ( editor.mode == 'wysiwyg' )
{
// Insert as plain text.
// http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor-method-insertText
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertText
editor.insertText( value );
}
else
@@ -59,7 +59,7 @@
var value = document.getElementById( 'htmlArea' ).value;
// Set editor contents (replace current contents).
// http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor-method-setData
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setData
editor.setData( value );
}
@@ -68,7 +68,7 @@
var editor = CKEDITOR.instances.editor1;
// Get editor contents
// http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor-method-getData
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData
alert( editor.getData() );
}
@@ -80,7 +80,7 @@
if ( editor.mode == 'wysiwyg' )
{
// Execute the command.
// http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor-method-execCommand
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-execCommand
editor.execCommand( commandName );
}
else
@@ -92,15 +92,15 @@
var editor = CKEDITOR.instances.editor1;
// Checks whether the current editor contents present changes when compared
// to the contents loaded into the editor at startup
// http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor-method-checkDirty
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-checkDirty
alert( editor.checkDirty() );
}
function ResetDirty() {
// Get the editor instance that we want to interact with.
var editor = CKEDITOR.instances.editor1;
// Resets the "dirty state" of the editor (see CheckDirty())
// http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor-method-resetDirty
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-resetDirty
editor.resetDirty();
alert( 'The "IsDirty" status has been reset' );
}
@@ -127,7 +127,7 @@ <h1 class="samples">
<div class="description">
<p>
This sample shows how to use the
<a class="samples" href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor">CKEditor JavaScript API</a>
<a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.editor">CKEditor JavaScript API</a>
to interact with the editor at runtime.
</p>
<p>
@@ -30,7 +30,7 @@
function toggleReadOnly( isReadOnly ) {
// Change the read-only state of the editor.
// http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor-method-setReadOnly
// http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setReadOnly
editor.setReadOnly( isReadOnly );
}
@@ -43,7 +43,7 @@ <h1 class="samples">
<div class="description">
<p>
This sample shows how to use the
<code><a class="samples" href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.editor-method-setReadOnly">setReadOnly</a></code>
<code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setReadOnly">setReadOnly</a></code>
API to put editor into the read-only state that makes it impossible for users to change the editor contents.
</p>
<p>
@@ -27,8 +27,8 @@ <h1 class="samples">
<p>
By default, CKEditor automatically localizes the editor to the language of the user.
The UI language can be controlled with two configuration options:
<code><a class="samples" href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.config-cfg-language">language</a></code> and
<code><a class="samples" href="http://nightly-v4.ckeditor.com/ckeditor_api/#!/api/CKEDITOR.config-cfg-defaultLanguage">
<code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-language">language</a></code> and
<code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-defaultLanguage">
defaultLanguage</a></code>. The <code>defaultLanguage</code> setting specifies the
default CKEditor language to be used when a localization suitable for user's settings is not available.
</p>
@@ -47,7 +47,7 @@ CKEDITOR.skin.name = 'kama';
// The accepted browser names must match the CKEDITOR.env properties. The most
// common names are: ie, opera, webkit and gecko. Check the documentation for
// the complete list:
// http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.env.html
// http://docs.ckeditor.com/#!/api/CKEDITOR.env
//
// Internet explorer is an expection and the browser version is also accepted
// (ie7, ie8, ie9, ie10), as well as a special name for IE in Quirks mode (iequirks).
@@ -47,7 +47,7 @@ CKEDITOR.skin.name = 'moono';
// The accepted browser names must match the CKEDITOR.env properties. The most
// common names are: ie, opera, webkit and gecko. Check the documentation for
// the complete list:
// http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.env.html
// http://docs.ckeditor.com/#!/api/CKEDITOR.env
//
// Internet explorer is an expection and the browser version is also accepted
// (ie7, ie8, ie9, ie10), as well as a special name for IE in Quirks mode (iequirks).

0 comments on commit 8a84177

Please sign in to comment.
You can’t perform that action at this time.