ソースを参照

Merge remote-tracking branch 'origin/master' into i/6319

Marek Lewandowski 5 年 前
コミット
a2bbf3af23
1 ファイル変更3 行追加1 行削除
  1. 3 1
      packages/ckeditor5-utils/tests/_utils/normalizehtml.js

+ 3 - 1
packages/ckeditor5-utils/tests/_utils/normalizehtml.js

@@ -5,6 +5,8 @@
 
 import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';
 import { stringify } from '@ckeditor/ckeditor5-engine/src/dev-utils/view';
+import { StylesProcessor } from '@ckeditor/ckeditor5-engine/src/view/stylesmap';
+import Document from '@ckeditor/ckeditor5-engine/src/view/document';
 
 /**
  * Parses given string of HTML and returns normalized HTML.
@@ -13,7 +15,7 @@ import { stringify } from '@ckeditor/ckeditor5-engine/src/dev-utils/view';
  * @returns {String} Normalized HTML string.
  */
 export default function normalizeHtml( html ) {
-	const processor = new HtmlDataProcessor();
+	const processor = new HtmlDataProcessor( new Document( new StylesProcessor() ) );
 	const parsed = processor.toView( html );
 
 	return stringify( parsed );