From 80314bf0c444dc32ff296f8b4f84ac4030599f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Wed, 3 May 2017 19:01:34 +0200 Subject: [PATCH] Other: Use essentials preset instead of low level features like typing and enter. Closes #9. --- ckeditor.js | 12 +++--------- config-build.js | 6 ++---- package.json | 7 ++----- 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/ckeditor.js b/ckeditor.js index 72b536b920..d634256c23 100644 --- a/ckeditor.js +++ b/ckeditor.js @@ -4,11 +4,10 @@ */ import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classic'; +import EssentialsPlugin from '@ckeditor/ckeditor5-presets/src/essentials'; import AutoformatPlugin from '@ckeditor/ckeditor5-autoformat/src/autoformat'; import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold'; import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic'; -import ClipboardPlugin from '@ckeditor/ckeditor5-clipboard/src/clipboard'; -import EnterPlugin from '@ckeditor/ckeditor5-enter/src/enter'; import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading'; import ImagePlugin from '@ckeditor/ckeditor5-image/src/image'; import ImagecaptionPlugin from '@ckeditor/ckeditor5-image/src/imagecaption'; @@ -17,18 +16,15 @@ import ImagetoolbarPlugin from '@ckeditor/ckeditor5-image/src/imagetoolbar'; import LinkPlugin from '@ckeditor/ckeditor5-link/src/link'; import ListPlugin from '@ckeditor/ckeditor5-list/src/list'; import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph'; -import TypingPlugin from '@ckeditor/ckeditor5-typing/src/typing'; -import UndoPlugin from '@ckeditor/ckeditor5-undo/src/undo'; export class ClassicEditor extends ClassicEditorBase {} ClassicEditor.build = { plugins: [ + EssentialsPlugin, AutoformatPlugin, BoldPlugin, ItalicPlugin, - ClipboardPlugin, - EnterPlugin, HeadingPlugin, ImagePlugin, ImagecaptionPlugin, @@ -36,9 +32,7 @@ ClassicEditor.build = { ImagetoolbarPlugin, LinkPlugin, ListPlugin, - ParagraphPlugin, - TypingPlugin, - UndoPlugin + ParagraphPlugin ], config: require( './config-editor' ) }; diff --git a/config-build.js b/config-build.js index 8e2420ab7c..a6e8d5b98b 100644 --- a/config-build.js +++ b/config-build.js @@ -9,11 +9,11 @@ module.exports = { editor: '@ckeditor/ckeditor5-editor-classic/src/classic', moduleName: 'ClassicEditor', plugins: [ + '@ckeditor/ckeditor5-presets/src/essentials', + '@ckeditor/ckeditor5-autoformat/src/autoformat', '@ckeditor/ckeditor5-basic-styles/src/bold', '@ckeditor/ckeditor5-basic-styles/src/italic', - '@ckeditor/ckeditor5-clipboard/src/clipboard', - '@ckeditor/ckeditor5-enter/src/enter', '@ckeditor/ckeditor5-heading/src/heading', '@ckeditor/ckeditor5-image/src/image', '@ckeditor/ckeditor5-image/src/imagecaption', @@ -22,7 +22,5 @@ module.exports = { '@ckeditor/ckeditor5-link/src/link', '@ckeditor/ckeditor5-list/src/list', '@ckeditor/ckeditor5-paragraph/src/paragraph', - '@ckeditor/ckeditor5-typing/src/typing', - '@ckeditor/ckeditor5-undo/src/undo', ] }; diff --git a/package.json b/package.json index 5f31eeccda..3b033055b1 100644 --- a/package.json +++ b/package.json @@ -6,17 +6,14 @@ "main": "./build/ckeditor.js", "dependencies": { "@ckeditor/ckeditor5-editor-classic": "^0.7.2", + "@ckeditor/ckeditor5-presets": "^0.2.1", "@ckeditor/ckeditor5-autoformat": "*", "@ckeditor/ckeditor5-basic-styles": "*", - "@ckeditor/ckeditor5-clipboard": "^0.5.0", - "@ckeditor/ckeditor5-enter": "^0.9.0", "@ckeditor/ckeditor5-heading": "^0.9.0", "@ckeditor/ckeditor5-image": "^0.5.0", "@ckeditor/ckeditor5-link": "^0.6.0", "@ckeditor/ckeditor5-list": "^0.6.0", - "@ckeditor/ckeditor5-paragraph": "^0.7.0", - "@ckeditor/ckeditor5-typing": "^0.9.0", - "@ckeditor/ckeditor5-undo": "^0.8.0" + "@ckeditor/ckeditor5-paragraph": "^0.7.0" }, "devDependencies": { "@ckeditor/ckeditor5-dev-utils": "^2.5.0",