Browse Source

Changed: Aligning with new conversion helpers API.

Szymon Cofalik 7 years ago
parent
commit
a5ceb2c906
1 changed files with 1 additions and 3 deletions
  1. 1 3
      packages/ckeditor5-paragraph/src/paragraph.js

+ 1 - 3
packages/ckeditor5-paragraph/src/paragraph.js

@@ -10,7 +10,6 @@
 import ParagraphCommand from './paragraphcommand';
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
-import { elementToElement } from '@ckeditor/ckeditor5-engine/src/conversion/two-way-converters';
 import { SchemaContext } from '@ckeditor/ckeditor5-engine/src/model/schema';
 import Position from '@ckeditor/ckeditor5-engine/src/model/position';
 import Range from '@ckeditor/ckeditor5-engine/src/model/range';
@@ -36,14 +35,13 @@ export default class Paragraph extends Plugin {
 		const editor = this.editor;
 		const model = editor.model;
 		const data = editor.data;
-		const editing = editor.editing;
 
 		editor.commands.add( 'paragraph', new ParagraphCommand( editor ) );
 
 		// Schema.
 		model.schema.register( 'paragraph', { inheritAllFrom: '$block' } );
 
-		elementToElement( editor.conversion, { model: 'paragraph', view: 'p' } );
+		editor.conversion.elementToElement( { model: 'paragraph', view: 'p' } );
 
 		// Content autoparagraphing. --------------------------------------------------