Permalink
Browse files

Other: Use essentials preset instead of low level features like typin…

…g and enter. Closes #9.
  • Loading branch information...
Reinmar committed May 3, 2017
1 parent ae2da32 commit 80314bf0c444dc32ff296f8b4f84ac4030599f5d
Showing with 7 additions and 18 deletions.
  1. +3 −9 ckeditor.js
  2. +2 −4 config-build.js
  3. +2 −5 package.json
@@ -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,28 +16,23 @@ 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,
ImagestylePlugin,
ImagetoolbarPlugin,
LinkPlugin,
ListPlugin,
ParagraphPlugin,
TypingPlugin,
UndoPlugin
ParagraphPlugin
],
config: require( './config-editor' )
};
@@ -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',
]
};
@@ -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",

0 comments on commit 80314bf

Please sign in to comment.