Browse Source

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

Piotrek Koszuliński 8 years ago
parent
commit
bb807e78f6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/ckeditor5-autoformat/tests/inlineautoformatengine.js

+ 2 - 1
packages/ckeditor5-autoformat/tests/inlineautoformatengine.js

@@ -24,7 +24,8 @@ describe( 'InlineAutoformatEngine', () => {
 				editor = newEditor;
 				model = editor.model;
 				doc = model.document;
-				model.schema.allow( { name: '$inline', attributes: [ 'testAttribute' ] } );
+
+				model.schema.extend( '$text', { allowAttributes: 'testAttribute' } );
 			} );
 	} );