Explorar el Código

Merge branch t/ckeditor5-engine/532

Internal: Aligned Schema API use to the new Schema API.
Piotrek Koszuliński hace 8 años
padre
commit
acd05604b7
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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' )