8
0
Просмотр исходного кода

Requested changes during the review.

Kamil Piechaczek 6 лет назад
Родитель
Сommit
ab1fa08d62

+ 1 - 1
packages/ckeditor5-core/src/editor/editor.js

@@ -171,7 +171,7 @@ export default class Editor {
 		 * @readonly
 		 * @member {module:engine/controller/datacontroller~DataController}
 		 */
-		this.data = new DataController( this.model, stylesProcessor );
+		this.data = new DataController( stylesProcessor, this.model );
 
 		/**
 		 * The {@link module:engine/controller/editingcontroller~EditingController editing controller}.

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

@@ -19,7 +19,7 @@ describe( 'ElementApiMixin', () => {
 		mix( CustomEditor, ElementApiMixin );
 
 		editor = new CustomEditor();
-		editor.data.processor = new HtmlDataProcessor( editor.stylesProcessor );
+		editor.data.processor = new HtmlDataProcessor( editor.editing.view.document );
 		editor.model.document.createRoot();
 		editor.model.schema.extend( '$text', { allowIn: '$root' } );
 	} );