// If not the basic code is not ready it, just mark it to be loaded.\r
if ( CKEDITOR.status != 'basic_ready' )\r
{\r
// If not the basic code is not ready it, just mark it to be loaded.\r
if ( CKEDITOR.status != 'basic_ready' )\r
{\r
- var createInstance = function( elementOrIdOrName, config, creationFunction )\r
+ var createInstance = function( elementOrIdOrName, config, creationFunction, data )\r
* @param {Object} [config] The specific configurations to apply to this\r
* editor instance. Configurations set here will override global CKEditor\r
* settings.\r
* @param {Object} [config] The specific configurations to apply to this\r
* editor instance. Configurations set here will override global CKEditor\r
* settings.\r
* @returns {CKEDITOR.editor} The editor instance created.\r
* @example\r
* <div id="editorSpace"><:/div>\r
* ...\r
* <b>CKEDITOR.appendTo( 'editorSpace' )</b>;\r
*/\r
* @returns {CKEDITOR.editor} The editor instance created.\r
* @example\r
* <div id="editorSpace"><:/div>\r
* ...\r
* <b>CKEDITOR.appendTo( 'editorSpace' )</b>;\r
*/\r
- return createInstance( elementOrId, config, CKEDITOR.editor.appendTo );\r
+ return createInstance( elementOrId, config, CKEDITOR.editor.appendTo, data );\r
CKEDITOR.add = function( editor )\r
{\r
// For now, just put the editor in the pending list. It will be\r
CKEDITOR.add = function( editor )\r
{\r
// For now, just put the editor in the pending list. It will be\r
- var config = null;\r
- var textarea = textareas[i];\r
- var name = textarea.name;\r
+ var config = null,\r
+ textarea = textareas[i],\r
+ name = textarea.name;\r