浏览代码

Add missing StylesProcessor instance.

Maciej Gołaszewski 5 年之前
父节点
当前提交
18c77e4e0d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-engine/src/model/model.js

+ 1 - 1
packages/ckeditor5-engine/src/model/model.js

@@ -334,7 +334,7 @@ export default class Model {
 	 *
 	 *
 	 *		// You can create your own HtmlDataProcessor instance or use editor.data.processor
 	 *		// You can create your own HtmlDataProcessor instance or use editor.data.processor
 	 *		// if you have not overridden the default one (which is the HtmlDataProcessor instance).
 	 *		// if you have not overridden the default one (which is the HtmlDataProcessor instance).
-	 *		const htmlDP = new HtmlDataProcessor();
+	 *		const htmlDP = new HtmlDataProcessor( new StylesProcessor() );
 	 *
 	 *
 	 *		// Convert an HTML string to a view document fragment:
 	 *		// Convert an HTML string to a view document fragment:
 	 *		const viewFragment = htmlDP.toView( htmlString );
 	 *		const viewFragment = htmlDP.toView( htmlString );