Explorar el Código

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

Aleksander Nowodzinski hace 7 años
padre
commit
f505b993de
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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.