Browse Source

Internal: Re-used the `DataController#viewDocument` as a document for the `HtmlDataProcessor` in the data pipeline.

Aleksander Nowodzinski 5 years ago
parent
commit
bf93c254dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/ckeditor5-editor-classic/src/classiceditor.js

+ 1 - 1
packages/ckeditor5-editor-classic/src/classiceditor.js

@@ -66,7 +66,7 @@ export default class ClassicEditor extends Editor {
 			this.sourceElement = sourceElementOrData;
 		}
 
-		this.data.processor = new HtmlDataProcessor( this.editing.view.document );
+		this.data.processor = new HtmlDataProcessor( this.data.viewDocument );
 
 		this.model.document.createRoot();