diff --git a/tests/_utils/classictesteditor.js b/tests/_utils/classictesteditor.js index 0bc3e80..30b0eec 100644 --- a/tests/_utils/classictesteditor.js +++ b/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(); diff --git a/tests/_utils/modeltesteditor.js b/tests/_utils/modeltesteditor.js index 55e6ec5..8653018 100644 --- a/tests/_utils/modeltesteditor.js +++ b/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(); diff --git a/tests/_utils/virtualtesteditor.js b/tests/_utils/virtualtesteditor.js index 527604e..9cea41c 100644 --- a/tests/_utils/virtualtesteditor.js +++ b/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(); diff --git a/tests/editor/utils/attachtoform.js b/tests/editor/utils/attachtoform.js index 8a66b11..bfc95fd 100644 --- a/tests/editor/utils/attachtoform.js +++ b/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' ); diff --git a/tests/editor/utils/dataapimixin.js b/tests/editor/utils/dataapimixin.js index 18214e4..7c58939 100644 --- a/tests/editor/utils/dataapimixin.js +++ b/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' } ); diff --git a/tests/editor/utils/elementapimixin.js b/tests/editor/utils/elementapimixin.js index 7884170..a89967e 100644 --- a/tests/editor/utils/elementapimixin.js +++ b/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)