瀏覽代碼

Merge branch t/ckeditor5-engine/532

Internal: Aligned Schema API use to the new Schema API.
Piotrek Koszuliński 8 年之前
父節點
當前提交
36914ccbe4
共有 1 個文件被更改,包括 2 次插入1 次删除
  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' } );
 			} );
 	} );