8
0
Эх сурвалжийг харах

Merge branch 'master' into t/ckeditor5/550

Piotrek Koszuliński 8 жил өмнө
parent
commit
7ae6b6ef93

+ 3 - 3
packages/ckeditor5-editor-balloon/src/ballooneditor.js

@@ -24,7 +24,7 @@ import mix from '@ckeditor/ckeditor5-utils/src/mix';
  * See the {@glink examples/builds/balloon-editor demo}.
  *
  * In order to create a balloon editor instance, use the static
- * {@link module:editor-balloon/ballooneditor~BalloonEditor#create `BalloonEditor.create()`} method.
+ * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`} method.
  *
  * # Balloon editor and balloon build
  *
@@ -38,7 +38,7 @@ import mix from '@ckeditor/ckeditor5-utils/src/mix';
  * Using the editor from source gives much better flexibility and allows easier customization.
  *
  * Read more about initializing the editor from source or as a build in
- * {@link module:editor-balloon/ballooneditor~BalloonEditor#create `BalloonEditor.create()`}.
+ * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`}.
  *
  * @mixes module:core/editor/utils/dataapimixin~DataApiMixin
  * @mixes module:core/editor/utils/elementapimixin~ElementApiMixin
@@ -50,7 +50,7 @@ export default class BalloonEditor extends Editor {
 	 * Creates an instance of the balloon editor.
 	 *
 	 * **Note:** do not use the constructor to create editor instances. Use the static
-	 * {@link module:editor-balloon/ballooneditor~BalloonEditor#create `BalloonEditor.create()`} method instead.
+	 * {@link module:editor-balloon/ballooneditor~BalloonEditor.create `BalloonEditor.create()`} method instead.
 	 *
 	 * @protected
 	 * @param {HTMLElement} element The DOM element that will be the source for the created editor

+ 1 - 1
packages/ckeditor5-editor-balloon/src/ballooneditorui.js

@@ -56,7 +56,7 @@ export default class BalloonEditorUI {
 		view.render();
 
 		// Setup the editable.
-		const editingRoot = editor.editing.view.getRoot();
+		const editingRoot = editor.editing.view.document.getRoot();
 		view.editable.bind( 'isReadOnly' ).to( editingRoot );
 
 		// Bind to focusTracker instead of editor.editing.view because otherwise

+ 1 - 1
packages/ckeditor5-editor-balloon/tests/ballooneditorui.js

@@ -95,7 +95,7 @@ describe( 'BalloonEditorUI', () => {
 			let editable;
 
 			beforeEach( () => {
-				editable = editor.editing.view.getRoot();
+				editable = editor.editing.view.document.getRoot();
 			} );
 
 			it( 'registers view.editable#element in editor focus tracker', () => {

+ 1 - 1
packages/ckeditor5-editor-balloon/tests/manual/ballooneditor.js

@@ -31,7 +31,7 @@ function initEditors() {
 				console.log( 'It has been added to global `editors` and `editables`.' );
 
 				window.editors[ selector ] = editor;
-				window.editables.push( editor.editing.view.getRoot() );
+				window.editables.push( editor.editing.view.document.getRoot() );
 
 				const observer = testUtils.createObserver();