Explorar o código

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

Piotrek Koszuliński %!s(int64=8) %!d(string=hai) anos
pai
achega
bb807e78f6

+ 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' } );
 			} );
 	} );