|
|
@@ -1,4 +1,6 @@
|
|
|
import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
|
|
|
+import BalloonEditorBase from '@ckeditor/ckeditor5-editor-balloon/src/ballooneditor';
|
|
|
+import InlineEditorBase from '@ckeditor/ckeditor5-editor-inline/src/inlineeditor';
|
|
|
|
|
|
import Essentials from '@ckeditor/ckeditor5-essentials/src/essentials';
|
|
|
import UploadAdapter from '@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter';
|
|
|
@@ -35,11 +37,12 @@ import FontBackgroundColor from '@ckeditor/ckeditor5-font/src/fontbackgroundcolo
|
|
|
import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment';
|
|
|
import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
|
|
|
|
|
|
-export default class ClassicEditor extends ClassicEditorBase {
|
|
|
-}
|
|
|
+class ClassicEditor extends ClassicEditorBase {}
|
|
|
+class BalloonEditor extends BalloonEditorBase {}
|
|
|
+class InlineEditor extends InlineEditorBase {}
|
|
|
|
|
|
// Plugins to include in the build.
|
|
|
-ClassicEditor.builtinPlugins = [
|
|
|
+const builtinPlugins = [
|
|
|
Essentials,
|
|
|
UploadAdapter,
|
|
|
Autoformat,
|
|
|
@@ -76,8 +79,12 @@ ClassicEditor.builtinPlugins = [
|
|
|
Alignment
|
|
|
];
|
|
|
|
|
|
+BalloonEditor.builtinPlugins = builtinPlugins;
|
|
|
+ClassicEditor.builtinPlugins = builtinPlugins;
|
|
|
+InlineEditor.builtinPlugins = builtinPlugins;
|
|
|
+
|
|
|
// Editor configuration.
|
|
|
-ClassicEditor.defaultConfig = {
|
|
|
+const defaultConfig = {
|
|
|
alignment: {
|
|
|
options: ['left', 'center', 'right', 'justify']
|
|
|
},
|
|
|
@@ -145,3 +152,13 @@ ClassicEditor.defaultConfig = {
|
|
|
// This value must be kept in sync with the language defined in webpack.config.js.
|
|
|
language: 'en'
|
|
|
};
|
|
|
+
|
|
|
+BalloonEditor.defaultConfig = defaultConfig;
|
|
|
+ClassicEditor.defaultConfig = defaultConfig;
|
|
|
+InlineEditor.defaultConfig = defaultConfig;
|
|
|
+
|
|
|
+export default {
|
|
|
+ BalloonEditor,
|
|
|
+ ClassicEditor,
|
|
|
+ InlineEditor,
|
|
|
+};
|