浏览代码

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.