Selaa lähdekoodia

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

Piotrek Koszuliński 8 vuotta sitten
vanhempi
commit
99daefde09
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  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;
 
-					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 )
 						.fromElement( 'heading' )