From c3c6a83faaf56852b0e5773f1540d1e9d7e161ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Go=C5=82aszewski?= Date: Fri, 9 Feb 2018 14:31:09 +0100 Subject: [PATCH] Align feature class naming to a new scheme. --- src/paragraph.js | 1 - tests/paragraph-intergration.js | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/paragraph.js b/src/paragraph.js index 325d332..cc011e1 100644 --- a/src/paragraph.js +++ b/src/paragraph.js @@ -36,7 +36,6 @@ 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 ) ); diff --git a/tests/paragraph-intergration.js b/tests/paragraph-intergration.js index 69461c5..d05537c 100644 --- a/tests/paragraph-intergration.js +++ b/tests/paragraph-intergration.js @@ -5,8 +5,8 @@ import Paragraph from '../src/paragraph'; import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard'; -import UndoEngine from '@ckeditor/ckeditor5-undo/src/undoengine'; -import HeadingEngine from '@ckeditor/ckeditor5-heading/src/headingengine'; +import UndoEditing from '@ckeditor/ckeditor5-undo/src/undoediting'; +import HeadingEditing from '@ckeditor/ckeditor5-heading/src/headingediting'; import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor'; import { getData as getModelData, @@ -38,7 +38,7 @@ describe( 'Paragraph feature – integration', () => { // Explainer: the heading feature is configured to handle h2-h4 elements, so h1 has no handler. it( 'pastes h1+h2+p as p+h2+p when heading feature is present', () => { return VirtualTestEditor - .create( { plugins: [ Paragraph, Clipboard, HeadingEngine ] } ) + .create( { plugins: [ Paragraph, Clipboard, HeadingEditing ] } ) .then( newEditor => { const editor = newEditor; const clipboard = editor.plugins.get( 'Clipboard' ); @@ -76,7 +76,7 @@ describe( 'Paragraph feature – integration', () => { // handle the li element. it( 'pastes ul>li>h2+h3+p as h2+h3+p when heading feature is present', () => { return VirtualTestEditor - .create( { plugins: [ Paragraph, Clipboard, HeadingEngine ] } ) + .create( { plugins: [ Paragraph, Clipboard, HeadingEditing ] } ) .then( newEditor => { const editor = newEditor; const clipboard = editor.plugins.get( 'Clipboard' ); @@ -142,7 +142,7 @@ describe( 'Paragraph feature – integration', () => { describe( 'with undo', () => { it( 'fixing empty roots should be transparent to undo', () => { return VirtualTestEditor - .create( { plugins: [ Paragraph, UndoEngine ] } ) + .create( { plugins: [ Paragraph, UndoEditing ] } ) .then( newEditor => { const editor = newEditor; const doc = editor.model.document; @@ -175,7 +175,7 @@ describe( 'Paragraph feature – integration', () => { it( 'fixing empty roots should be transparent to undo - multiple roots', () => { return VirtualTestEditor - .create( { plugins: [ Paragraph, UndoEngine ] } ) + .create( { plugins: [ Paragraph, UndoEditing ] } ) .then( newEditor => { const editor = newEditor; const doc = editor.model.document;