|
|
@@ -50,8 +50,8 @@ describe( 'InlineEditor', () => {
|
|
|
} );
|
|
|
|
|
|
it( 'creates a single document root', () => {
|
|
|
- expect( count( editor.document.getRootNames() ) ).to.equal( 1 );
|
|
|
- expect( editor.document.getRoot() ).to.have.property( 'name', '$root' );
|
|
|
+ expect( count( editor.model.document.getRootNames() ) ).to.equal( 1 );
|
|
|
+ expect( editor.model.document.getRoot() ).to.have.property( 'name', '$root' );
|
|
|
} );
|
|
|
|
|
|
it( 'creates the UI using BoxedEditorUI classes', () => {
|
|
|
@@ -207,7 +207,7 @@ describe( 'InlineEditor', () => {
|
|
|
.then( newEditor => {
|
|
|
editor = newEditor;
|
|
|
|
|
|
- const schema = editor.document.schema;
|
|
|
+ const schema = editor.model.schema;
|
|
|
|
|
|
schema.registerItem( 'heading' );
|
|
|
schema.allow( { name: 'heading', inside: '$root' } );
|