8
0
فهرست منبع

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

Aleksander Nowodzinski 7 سال پیش
والد
کامیت
f505b993de
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  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.