X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Feditor_basic.js;h=7b2d54a87efe06efcff30d02851d38728c46e520;hb=9afde8772159bd3436f1f5b7862960307710ae5a;hp=116e6807fd2045ed4c66cea5c5d70634180ed614;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/editor_basic.js b/_source/core/editor_basic.js index 116e680..7b2d54a 100644 --- a/_source/core/editor_basic.js +++ b/_source/core/editor_basic.js @@ -27,36 +27,38 @@ if ( !CKEDITOR.editor ) CKEDITOR.ELEMENT_MODE_APPENDTO = 2; /** - * Represents an editor instance. This constructor should be rarely used, - * being the {@link CKEDITOR} methods preferible. - * @constructor + * Creates an editor class instance. This constructor should be rarely + * used, in favor of the {@link CKEDITOR} editor creation functions. + * @ class Represents an editor instance. * @param {Object} instanceConfig Configuration values for this specific * instance. * @param {CKEDITOR.dom.element} [element] The element linked to this * instance. * @param {Number} [mode] The mode in which the element is linked to this - * instance. + * instance. See {@link #elementMode}. + * @param {String} [data] Since 3.3. Initial value for the instance. * @augments CKEDITOR.event * @example */ - CKEDITOR.editor = function( instanceConfig, element, mode ) + CKEDITOR.editor = function( instanceConfig, element, mode, data ) { this._ = { // Save the config to be processed later by the full core code. instanceConfig : instanceConfig, - element : element + element : element, + data : data }; /** * The mode in which the {@link #element} is linked to this editor * instance. It can be any of the following values: *