Kaynağa Gözat

Removed Editor#focusTracker to *EditorUI.

Aleksander Nowodzinski 9 yıl önce
ebeveyn
işleme
1c224da9fb

+ 0 - 8
packages/ckeditor5-core/src/editor/editor.js

@@ -9,7 +9,6 @@ import PluginCollection from '../plugincollection.js';
 import Locale from '../../utils/locale.js';
 import DataController from '../../engine/controller/datacontroller.js';
 import Document from '../../engine/model/document.js';
-import FocusTracker from '../../utils/focustracker.js';
 
 import CKEditorError from '../../utils/ckeditorerror.js';
 import mix from '../../utils/mix.js';
@@ -84,13 +83,6 @@ export default class Editor {
 		this.data = new DataController( this.document );
 
 		/**
-		 * Keeps information about editor focus.
-		 *
-		 * @member {utils.FocusTracker} core.editor.Editor#focusTracker
-		 */
-		this.focusTracker = new FocusTracker();
-
-		/**
 		 * Instance of the {@link engine.controller.EditingController editing controller}.
 		 *
 		 * This property is set by more specialized editor classes (such as {@link core.editor.StandardEditor}),

+ 0 - 2
packages/ckeditor5-core/tests/editor/editor.js

@@ -10,7 +10,6 @@ import Editor from 'ckeditor5/core/editor/editor.js';
 import Plugin from 'ckeditor5/core/plugin.js';
 import Config from 'ckeditor5/utils/config.js';
 import PluginCollection from 'ckeditor5/core/plugincollection.js';
-import FocusTracker from 'ckeditor5/utils/focustracker.js';
 
 class PluginA extends Plugin {
 	constructor( editor ) {
@@ -52,7 +51,6 @@ describe( 'Editor', () => {
 
 			expect( editor.config ).to.be.an.instanceof( Config );
 			expect( editor.commands ).to.be.an.instanceof( Map );
-			expect( editor.focusTracker ).to.instanceOf( FocusTracker );
 
 			expect( editor.plugins ).to.be.an.instanceof( PluginCollection );
 			expect( getPlugins( editor ) ).to.be.empty;