Browse Source

Merge branch t/engine/1186

Internal: Update API usage after merge t/1186 on engine.
Piotr Jasiun 8 years ago
parent
commit
e106f60f56

+ 1 - 1
packages/ckeditor5-editor-inline/src/inlineeditor.js

@@ -52,7 +52,7 @@ export default class InlineEditor extends StandardEditor {
 	constructor( element, config ) {
 		super( element, config );
 
-		this.document.createRoot();
+		this.model.document.createRoot();
 		this.data.processor = new HtmlDataProcessor();
 		this.ui = new InlineEditorUI( this, new InlineEditorUIView( this.locale, element ) );
 	}

+ 3 - 3
packages/ckeditor5-editor-inline/tests/inlineeditor.js

@@ -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' } );