Browse Source

First batch of changes updating schema use to match the new API.

Piotrek Koszuliński 8 years ago
parent
commit
18eeae6091
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/ckeditor5-editor-balloon/tests/ballooneditor.js

+ 3 - 3
packages/ckeditor5-editor-balloon/tests/ballooneditor.js

@@ -217,9 +217,9 @@ describe( 'BalloonEditor', () => {
 
 
 					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' )