Browse Source

Docs: Fixed invalid links.

Oskar Wróbel 8 years ago
parent
commit
01b6ff9da3

+ 3 - 1
packages/ckeditor5-engine/src/controller/editingcontroller.js

@@ -32,7 +32,9 @@ import mix from '@ckeditor/ckeditor5-utils/src/mix';
  * including selection handling. It also creates {@link ~EditingController#view view document} which build a
  * browser-independent virtualization over the DOM elements. Editing controller also attach default converters.
  *
- * Editing controller binds {@link model:engine/}
+ * Editing controller binds {@link module:engine/view/document~Document#roots view roots collection} to
+ * {@link module:engine/model/document~Document#roots model roots collection} so creating model root automatically
+ * creates corresponding view root.
  *
  * @mixes module:utils/observablemixin~ObservableMixin
  */

+ 3 - 3
packages/ckeditor5-engine/src/view/document.js

@@ -74,15 +74,15 @@ export default class Document {
 		this.domConverter = new DomConverter();
 
 		/**
-		 * Roots of the view tree. Map of the {module:engine/view/element~Element view elements} with roots names as keys.
+		 * Roots of the view tree. Collection of the {module:engine/view/element~Element view elements}.
 		 *
 		 * View roots are created as a result of binding between {@link module:engine/view/document~Document#roots} and
 		 * {@link module:engine/model/document~Document#roots} and this is handled by
-		 * {@link modeule:engine/controller/editingcontroller~EditingController}, so to create view root we need to create
+		 * {@link module:engine/controller/editingcontroller~EditingController}, so to create view root we need to create
 		 * model root using {@link module:engine/model/document~Document#createRoot}.
 		 *
 		 * @readonly
-		 * @member {Map} module:engine/view/document~Document#roots
+		 * @member {Collection} module:engine/view/document~Document#roots
 		 */
 		this.roots = new Collection( { idProperty: 'rootName' } );