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

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

Aleksander Nowodzinski 7 жил өмнө
parent
commit
f505b993de

+ 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.