JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.1
[ckeditor.git] / _source / core / editor_basic.js
index 3c4c5e3..ec90bf7 100644 (file)
@@ -36,16 +36,18 @@ if ( !CKEDITOR.editor )
         *              instance.\r
         * @param {Number} [mode] The mode in which the element is linked to this\r
         *              instance.\r
+        * @param {String} [data] Since 3.3. Initial value for the instance.\r
         * @augments CKEDITOR.event\r
         * @example\r
         */\r
-       CKEDITOR.editor = function( instanceConfig, element, mode )\r
+       CKEDITOR.editor = function( instanceConfig, element, mode, data )\r
        {\r
                this._ =\r
                {\r
                        // Save the config to be processed later by the full core code.\r
                        instanceConfig : instanceConfig,\r
-                       element : element\r
+                       element : element,\r
+                       data : data\r
                };\r
 \r
                /**\r
@@ -126,10 +128,11 @@ if ( !CKEDITOR.editor )
         * @param {Object} [config] The specific configurations to apply to this\r
         *              editor instance. Configurations set here will override global CKEditor\r
         *              settings.\r
+        * @param {String} [data] Since 3.3. Initial value for the instance.\r
         * @returns {CKEDITOR.editor} The editor instance created.\r
         * @example\r
         */\r
-       CKEDITOR.editor.appendTo = function( elementOrId, config )\r
+       CKEDITOR.editor.appendTo = function( elementOrId, config, data )\r
        {\r
                var element = elementOrId;\r
                if ( typeof element != 'object' )\r
@@ -141,7 +144,7 @@ if ( !CKEDITOR.editor )
                }\r
 \r
                // Create the editor instance.\r
-               return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_APPENDTO );\r
+               return new CKEDITOR.editor( config, element, CKEDITOR.ELEMENT_MODE_APPENDTO, data );\r
        };\r
 \r
        CKEDITOR.editor.prototype =\r