X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fcore%2Feditor_basic.js;h=337238093d7df023b6c30f812513fd0d8d41313c;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=e54f48003e064c57deca21ceed125592703ae33e;hpb=7cd80714081a8ffdf4a1a8d2c72f120ed5ef3d6d;p=ckeditor.git diff --git a/_source/core/editor_basic.js b/_source/core/editor_basic.js index e54f480..3372380 100644 --- a/_source/core/editor_basic.js +++ b/_source/core/editor_basic.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -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: *