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

Commit

Permalink
Other: Use essentials preset instead of low level features like typin…
Browse files Browse the repository at this point in the history
…g and enter. Closes #9.
  • Loading branch information
Reinmar committed May 3, 2017
1 parent ae2da32 commit 80314bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
12 changes: 3 additions & 9 deletions ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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' )
};
6 changes: 2 additions & 4 deletions config-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
]
};
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 80314bf

Please sign in to comment.