Jelajahi Sumber

Bind EditableUiView#isFocused to the FocusTracker to avoid issues when the focus moves to the nested editable.

Aleksander Nowodzinski 7 tahun lalu
induk
melakukan
f505b993de
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      packages/ckeditor5-editor-classic/src/classiceditorui.js

+ 1 - 2
packages/ckeditor5-editor-classic/src/classiceditorui.js

@@ -41,8 +41,7 @@ export default class ClassicEditorUI extends EditorUI {
 		const view = this.view;
 		const editingView = editor.editing.view;
 
-		view.editable.bind( 'isFocused' ).to( editingView.document );
-
+		view.editable.bind( 'isFocused' ).to( this.focusTracker );
 		view.render();
 
 		// Set–up the sticky panel with toolbar.