Bläddra i källkod

API docs fixes and made the controller register the editing host element (e.g. not <iframe> but <body> inside). This will need to be validated with iframed editable one day.

Piotrek Koszuliński 9 år sedan
förälder
incheckning
4e08d1febf

+ 6 - 5
packages/ckeditor5-editor-classic/src/classiceditorui.js

@@ -23,7 +23,7 @@ export default class ClassicEditorUI {
 		 * Editor that the UI belongs to.
 		 *
 		 * @readonly
-		 * @member {core.editor.Editor} editor-classic.ClssicEditorUI#editor
+		 * @member {core.editor.Editor} editor-classic.ClassicEditorUI#editor
 		 */
 		this.editor = editor;
 
@@ -31,7 +31,7 @@ export default class ClassicEditorUI {
 		 * View of the ui.
 		 *
 		 * @readonly
-		 * @member {ui.editorUI.EditorUIView} editor-classic.ClssicEditorUI#view
+		 * @member {ui.editorUI.EditorUIView} editor-classic.ClassicEditorUI#view
 		 */
 		this.view = view;
 
@@ -39,14 +39,15 @@ export default class ClassicEditorUI {
 		 * Instance of the {@link ui.ComponentFactory}.
 		 *
 		 * @readonly
-		 * @member {ui.ComponentFactory} editor-classic.ClssicEditorUI#featureComponents
+		 * @member {ui.ComponentFactory} editor-classic.ClassicEditorUI#featureComponents
 		 */
 		this.featureComponents = new ComponentFactory( editor );
 
 		/**
 		 * Keeps information about editor focus.
 		 *
-		 * @member {utils.FocusTracker} editor-classic.ClssicEditorUI#focusTracker
+		 * @readonly
+		 * @member {utils.FocusTracker} editor-classic.ClassicEditorUI#focusTracker
 		 */
 		this.focusTracker = new FocusTracker();
 
@@ -62,7 +63,7 @@ export default class ClassicEditorUI {
 		const editingRoot = editor.editing.createRoot( 'div' );
 		view.editable.bind( 'isReadOnly', 'isFocused' ).to( editingRoot );
 		view.editable.name = editingRoot.rootName;
-		this.focusTracker.add( view.editable.element );
+		this.focusTracker.add( view.editableElement );
 	}
 
 	/**

+ 1 - 4
packages/ckeditor5-editor-classic/src/classiceditoruiview.js

@@ -44,10 +44,7 @@ export default class ClassicEditorUIView extends BoxedEditorUIView {
 	}
 
 	/**
-	 * The editing host element of {@link editor-classic.ClassicEditorUIView#editable}.
-	 *
-	 * @readonly
-	 * @type {HTMLElement}
+	 * @inheritDoc
 	 */
 	get editableElement() {
 		return this.editable.element;