Explorar el Código

Add missing StylesProcessor instance.

Maciej Gołaszewski hace 6 años
padre
commit
3290647ecc

+ 1 - 1
packages/ckeditor5-ui/docs/_snippets/examples/bootstrap-ui-inner.js

@@ -52,7 +52,7 @@ export default class BootstrapEditor extends Editor {
 		this.sourceElement = element;
 
 		// Use the HTML data processor in this editor.
-		this.data.processor = new HtmlDataProcessor();
+		this.data.processor = new HtmlDataProcessor( this.stylesProcessor );
 
 		// Create the ("main") root element of the model tree.
 		this.model.document.createRoot();

+ 1 - 1
packages/ckeditor5-ui/docs/framework/guides/external-ui.md

@@ -71,7 +71,7 @@ export default class BootstrapEditor extends Editor {
 		this.sourceElement = element;
 
 		// Use the HTML data processor in this editor.
-		this.data.processor = new HtmlDataProcessor();
+		this.data.processor = new HtmlDataProcessor( this.stylesProcessor );
 
 		// Create the ("main") root element of the model tree.
 		this.model.document.createRoot();