|
|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
import ComponentFactory from '@ckeditor/ckeditor5-ui/src/componentfactory';
|
|
|
import View from '@ckeditor/ckeditor5-ui/src/view';
|
|
|
+import RootEditableElement from '@ckeditor/ckeditor5-engine/src/view/rooteditableelement';
|
|
|
|
|
|
import InlineEditorUI from '../src/inlineeditorui';
|
|
|
import InlineEditorUIView from '../src/inlineeditoruiview';
|
|
|
@@ -57,6 +58,10 @@ describe( 'InlineEditorUI', () => {
|
|
|
expect( ui.focusTracker ).to.be.instanceOf( FocusTracker );
|
|
|
} );
|
|
|
|
|
|
+ it( 'creates root editable element', () => {
|
|
|
+ expect( editor.editing.view.getRoot() ).to.be.instanceOf( RootEditableElement );
|
|
|
+ } );
|
|
|
+
|
|
|
describe( 'panel', () => {
|
|
|
it( 'binds view.panel#isVisible to editor.ui#focusTracker', () => {
|
|
|
ui.focusTracker.isFocused = false;
|