Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge branch i/6324 to master.
Browse files Browse the repository at this point in the history
Internal: Aligned to changes in ckeditor/ckeditor5#6381.
  • Loading branch information
Reinmar committed Mar 12, 2020
2 parents b083d27 + 60dba59 commit 2679734
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/_utils/classictesteditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/_utils/modeltesteditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/_utils/virtualtesteditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion tests/editor/utils/attachtoform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
2 changes: 1 addition & 1 deletion tests/editor/utils/dataapimixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' } );
Expand Down
2 changes: 1 addition & 1 deletion tests/editor/utils/elementapimixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2679734

Please sign in to comment.