Răsfoiți Sursa

Merge branch t/ckeditor5-engine/532

Internal: Aligned Schema API use to the new Schema API.
Piotrek Koszuliński 8 ani în urmă
părinte
comite
36914ccbe4

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