Browse Source

Merge branch t/ckeditor5-engine/532

Internal: Aligned Schema API use to the new Schema API.
Piotrek Koszuliński 8 years ago
parent
commit
acd05604b7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/ckeditor5-editor-inline/tests/inlineeditor.js

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

@@ -209,9 +209,9 @@ describe( 'InlineEditor', () => {
 
 
 					const schema = editor.model.schema;
 					const schema = editor.model.schema;
 
 
-					schema.registerItem( 'heading' );
-					schema.allow( { name: 'heading', inside: '$root' } );
-					schema.allow( { name: '$text', inside: 'heading' } );
+					schema.register( 'heading' );
+					schema.extend( 'heading', { allowIn: '$root' } );
+					schema.extend( '$text', { allowIn: 'heading' } );
 
 
 					buildModelConverter().for( editor.data.modelToView )
 					buildModelConverter().for( editor.data.modelToView )
 						.fromElement( 'heading' )
 						.fromElement( 'heading' )