|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
|
|
import ComponentFactory from '@ckeditor/ckeditor5-ui/src/componentfactory';
|
|
import ComponentFactory from '@ckeditor/ckeditor5-ui/src/componentfactory';
|
|
|
import View from '@ckeditor/ckeditor5-ui/src/view';
|
|
import View from '@ckeditor/ckeditor5-ui/src/view';
|
|
|
|
|
+import RootEditableElement from '@ckeditor/ckeditor5-engine/src/view/rooteditableelement';
|
|
|
|
|
|
|
|
import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
|
|
import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
|
|
|
import ClassicEditorUI from '../src/classiceditorui';
|
|
import ClassicEditorUI from '../src/classiceditorui';
|
|
@@ -56,6 +57,10 @@ describe( 'ClassicEditorUI', () => {
|
|
|
it( 'creates #focusTracker', () => {
|
|
it( 'creates #focusTracker', () => {
|
|
|
expect( ui.focusTracker ).to.be.instanceOf( FocusTracker );
|
|
expect( ui.focusTracker ).to.be.instanceOf( FocusTracker );
|
|
|
} );
|
|
} );
|
|
|
|
|
+
|
|
|
|
|
+ it( 'creates root editable element', () => {
|
|
|
|
|
+ expect( editor.editing.view.getRoot() ).to.be.instanceOf( RootEditableElement );
|
|
|
|
|
+ } );
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
describe( 'init()', () => {
|
|
describe( 'init()', () => {
|