Parcourir la source

Merge branch i/6324 to master.

Internal: Aligned to changes in ckeditor/ckeditor5#6381.
Piotrek Koszuliński il y a 5 ans
Parent
commit
18471cd661

+ 1 - 1
packages/ckeditor5-core/tests/_utils/classictesteditor.js

@@ -34,7 +34,7 @@ export default class ClassicTestEditor extends Editor {
 		}
 
 		// Use the HTML data processor in this editor.
-		this.data.processor = new HtmlDataProcessor( this.editing.view.document );
+		this.data.processor = new HtmlDataProcessor( this.data.viewDocument );
 
 		// Create the ("main") root element of the model tree.
 		this.model.document.createRoot();

+ 1 - 1
packages/ckeditor5-core/tests/_utils/modeltesteditor.js

@@ -21,7 +21,7 @@ export default class ModelTestEditor extends Editor {
 		super( config );
 
 		// Use the HTML data processor in this editor.
-		this.data.processor = new HtmlDataProcessor( this.editing.view.document );
+		this.data.processor = new HtmlDataProcessor( this.data.viewDocument );
 
 		// Disable editing pipeline.
 		this.editing.destroy();

+ 1 - 1
packages/ckeditor5-core/tests/_utils/virtualtesteditor.js

@@ -21,7 +21,7 @@ export default class VirtualTestEditor extends Editor {
 		super( config );
 
 		// Use the HTML data processor in this editor.
-		this.data.processor = new HtmlDataProcessor( this.editing.view.document );
+		this.data.processor = new HtmlDataProcessor( this.data.viewDocument );
 
 		// Create the ("main") root element of the model tree.
 		this.model.document.createRoot();

+ 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.editing.view.document );
+		editor.data.processor = new HtmlDataProcessor( editor.data.viewDocument );
 		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.editing.view.document );
+		editor.data.processor = new HtmlDataProcessor( editor.data.viewDocument );
 		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

@@ -21,7 +21,7 @@ describe( 'ElementApiMixin', () => {
 		mix( CustomEditor, ElementApiMixin );
 
 		editor = new CustomEditor();
-		editor.data.processor = new HtmlDataProcessor( editor.editing.view.document );
+		editor.data.processor = new HtmlDataProcessor( editor.data.viewDocument );
 		editor.model.document.createRoot();
 		editor.model.schema.extend( '$text', { allowIn: '$root' } );
 		editor.fire( 'ready' ); // (#6139)