Piotrek Koszuliński пре 10 година
родитељ
комит
9fbd15d116
2 измењених фајлова са 10 додато и 7 уклоњено
  1. 8 5
      packages/ckeditor5-engine/src/ckeditor.js
  2. 2 2
      packages/ckeditor5-engine/src/editor.js

+ 8 - 5
packages/ckeditor5-engine/src/ckeditor.js

@@ -18,6 +18,9 @@ CKEDITOR.define( [ 'editor', 'mvc/collection', 'promise' ], function( Editor, Co
 	var CKEDITOR = {
 		/**
 		 * A collection containing all editor instances created.
+		 *
+		 * @readonly
+		 * @property {Collection}
 		 */
 		instances: new Collection(),
 
@@ -27,13 +30,13 @@ CKEDITOR.define( [ 'editor', 'mvc/collection', 'promise' ], function( Editor, Co
 		 * The creation of editor instances is an asynchronous operation, therefore a promise is returned by this
 		 * method.
 		 *
-		 *     CKEDITOR.create( '#content' );
+		 *		CKEDITOR.create( '#content' );
 		 *
-		 *     CKEDITOR.create( '#content' ).then( function( editor ) {
-		 *         // Manipulate "editor" here.
-		 *     } );
+		 *		CKEDITOR.create( '#content' ).then( function( editor ) {
+		 *			// Manipulate "editor" here.
+		 *		} );
 		 *
-		 * @param {String|Object} element An element selector or a DOM element, which will be the source for the
+		 * @param {String|HTMLElement} element An element selector or a DOM element, which will be the source for the
 		 * created instance.
 		 * @returns {Promise} A promise, which will be fulfilled with the created editor.
 		 */

+ 2 - 2
packages/ckeditor5-engine/src/editor.js

@@ -19,7 +19,7 @@ CKEDITOR.define( [ 'ckeditor', 'mvc/model', 'utils' ], function( CKEDITOR, Model
 		 * This constructor should be rarely used. When creating new editor instance use instead the
 		 * {@link CKEDITOR#create CKEDITOR.create() method}.
 		 *
-		 * @param {Object} element The DOM element that will be the source for the created editor.
+		 * @param {HTMLElement} element The DOM element that will be the source for the created editor.
 		 * @constructor
 		 */
 		constructor: function Editor( element ) {
@@ -28,7 +28,7 @@ CKEDITOR.define( [ 'ckeditor', 'mvc/model', 'utils' ], function( CKEDITOR, Model
 			 * editor creation and is not subject to be modified.
 			 *
 			 * @readonly
-			 * @property {Object}
+			 * @property {HTMLElement}
 			 */
 			this.element = element;
 		},