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

Commit

Permalink
Merge pull request #32 from ckeditor/t/ckeditor5-engine/1295
Browse files Browse the repository at this point in the history
Other: Aligning with new conversion helpers API.
  • Loading branch information
Piotr Jasiun authored Feb 19, 2018
2 parents 797e25e + c4d5ed8 commit 9f0ec01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/paragraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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. --------------------------------------------------

Expand Down

0 comments on commit 9f0ec01

Please sign in to comment.