X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fckeditor_basic.js;fp=_source%2Fcore%2Fckeditor_basic.js;h=723d34cf0eb4a90148cf2906885e49d958e53535;hb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;hp=177d7c59dd75edc85a62545adb2306834ded7fc4;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/core/ckeditor_basic.js b/_source/core/ckeditor_basic.js index 177d7c5..723d34c 100644 --- a/_source/core/ckeditor_basic.js +++ b/_source/core/ckeditor_basic.js @@ -79,7 +79,7 @@ if ( CKEDITOR.status == 'unloaded' ) */ CKEDITOR.replaceByClassEnabled = true; - var createInstance = function( elementOrIdOrName, config, creationFunction ) + var createInstance = function( elementOrIdOrName, config, creationFunction, data ) { if ( CKEDITOR.env.isCompatible ) { @@ -87,7 +87,7 @@ if ( CKEDITOR.status == 'unloaded' ) if ( CKEDITOR.loadFullCore ) CKEDITOR.loadFullCore(); - var editor = creationFunction( elementOrIdOrName, config ); + var editor = creationFunction( elementOrIdOrName, config, data ); CKEDITOR.add( editor ); return editor; } @@ -125,15 +125,16 @@ if ( CKEDITOR.status == 'unloaded' ) * @param {Object} [config] The specific configurations to apply to this * editor instance. Configurations set here will override global CKEditor * settings. + * @param {String} [data] Since 3.3. Initial value for the instance. * @returns {CKEDITOR.editor} The editor instance created. * @example * <div id="editorSpace"><:/div> * ... * CKEDITOR.appendTo( 'editorSpace' ); */ - CKEDITOR.appendTo = function( elementOrId, config ) + CKEDITOR.appendTo = function( elementOrId, config, data ) { - return createInstance( elementOrId, config, CKEDITOR.editor.appendTo ); + return createInstance( elementOrId, config, CKEDITOR.editor.appendTo, data ); }; /**