|
|
@@ -26,6 +26,8 @@ import ImageuploadPlugin from '@ckeditor/ckeditor5-image/src/imageupload';
|
|
|
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 TablePlugin from '@ckeditor/ckeditor5-table/src/table';
|
|
|
+import TabletoolbarPlugin from '@ckeditor/ckeditor5-table/src/tabletoolbar';
|
|
|
|
|
|
export default class DecoupledEditor extends DecoupledEditorBase {}
|
|
|
|
|
|
@@ -52,7 +54,9 @@ DecoupledEditor.build = {
|
|
|
ImageuploadPlugin,
|
|
|
LinkPlugin,
|
|
|
ListPlugin,
|
|
|
- ParagraphPlugin
|
|
|
+ ParagraphPlugin,
|
|
|
+ TablePlugin,
|
|
|
+ TabletoolbarPlugin
|
|
|
],
|
|
|
config: {
|
|
|
toolbar: {
|
|
|
@@ -76,6 +80,7 @@ DecoupledEditor.build = {
|
|
|
'link',
|
|
|
'blockquote',
|
|
|
'imageUpload',
|
|
|
+ 'insertTable',
|
|
|
'|',
|
|
|
'undo',
|
|
|
'redo'
|
|
|
@@ -95,6 +100,13 @@ DecoupledEditor.build = {
|
|
|
'imageTextAlternative'
|
|
|
]
|
|
|
},
|
|
|
+ table: {
|
|
|
+ toolbar: [
|
|
|
+ 'tableColumn',
|
|
|
+ 'tableRow',
|
|
|
+ 'mergeCell'
|
|
|
+ ]
|
|
|
+ },
|
|
|
language: 'en'
|
|
|
}
|
|
|
};
|