Kaynağa Gözat

Other: Rename ContainerElement conversion helpers.

Maciej Gołaszewski 8 yıl önce
ebeveyn
işleme
35b761a44d

+ 3 - 3
packages/ckeditor5-heading/src/headingengine.js

@@ -9,7 +9,7 @@
 
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
-import { modelElementToView, viewToModelElement } from '@ckeditor/ckeditor5-engine/src/conversion/elementconverters';
+import { containerElementToView, viewToContainerElement } from '@ckeditor/ckeditor5-engine/src/conversion/containerelementconverters.js';
 
 
 import HeadingCommand from './headingcommand';
 import HeadingCommand from './headingcommand';
 
 
@@ -86,10 +86,10 @@ export default class HeadingEngine extends Plugin {
 				editor.document.schema.registerItem( option.model, '$block' );
 				editor.document.schema.registerItem( option.model, '$block' );
 
 
 				// Build converter from model to view for data and editing pipelines.
 				// Build converter from model to view for data and editing pipelines.
-				modelElementToView( option, [ data.modelToView, editing.modelToView ] );
+				containerElementToView( option, [ data.modelToView, editing.modelToView ] );
 
 
 				// Build converter from view to model for data pipeline.
 				// Build converter from view to model for data pipeline.
-				viewToModelElement( option, [ data.viewToModel ] );
+				viewToContainerElement( option, [ data.viewToModel ] );
 
 
 				// Register the heading command for this option.
 				// Register the heading command for this option.
 				editor.commands.add( option.model, new HeadingCommand( editor, option.model ) );
 				editor.commands.add( option.model, new HeadingCommand( editor, option.model ) );