ソースを参照

Add missing StylesProcessor instance.

Maciej Gołaszewski 6 年 前
コミット
a50bd21d05

+ 1 - 1
packages/ckeditor5-core/tests/editor/utils/attachtoform.js

@@ -31,7 +31,7 @@ describe( 'attachToForm()', () => {
 		mix( CustomEditor, ElementApiMixin );
 
 		editor = new CustomEditor();
-		editor.data.processor = new HtmlDataProcessor();
+		editor.data.processor = new HtmlDataProcessor( editor.stylesProcessor );
 		editor.model.document.createRoot();
 		editor.model.schema.extend( '$text', { allowIn: '$root' } );
 		editor.fire( 'ready' );

+ 1 - 1
packages/ckeditor5-core/tests/editor/utils/dataapimixin.js

@@ -18,7 +18,7 @@ describe( 'DataApiMixin', () => {
 		mix( CustomEditor, DataApiMixin );
 
 		editor = new CustomEditor();
-		editor.data.processor = new HtmlDataProcessor();
+		editor.data.processor = new HtmlDataProcessor( editor.stylesProcessor );
 		editor.model.document.createRoot( '$root', 'main' );
 		editor.model.document.createRoot( '$root', 'secondRoot' );
 		editor.model.schema.extend( '$text', { allowIn: '$root' } );

+ 1 - 1
packages/ckeditor5-core/tests/editor/utils/elementapimixin.js

@@ -19,7 +19,7 @@ describe( 'ElementApiMixin', () => {
 		mix( CustomEditor, ElementApiMixin );
 
 		editor = new CustomEditor();
-		editor.data.processor = new HtmlDataProcessor();
+		editor.data.processor = new HtmlDataProcessor( editor.stylesProcessor );
 		editor.model.document.createRoot();
 		editor.model.schema.extend( '$text', { allowIn: '$root' } );
 	} );