|
@@ -13,11 +13,13 @@ import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
|
|
|
import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
|
|
import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
|
|
|
import Image from '@ckeditor/ckeditor5-image/src/image';
|
|
import Image from '@ckeditor/ckeditor5-image/src/image';
|
|
|
import ImageCaption from '@ckeditor/ckeditor5-image/src/imagecaption';
|
|
import ImageCaption from '@ckeditor/ckeditor5-image/src/imagecaption';
|
|
|
|
|
+import Table from '@ckeditor/ckeditor5-table/src/table';
|
|
|
|
|
+import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar';
|
|
|
|
|
|
|
|
ClassicEditor
|
|
ClassicEditor
|
|
|
.create( document.querySelector( '#editor' ), {
|
|
.create( document.querySelector( '#editor' ), {
|
|
|
- plugins: [ Essentials, Paragraph, Bold, Italic, Heading, Image, ImageCaption ],
|
|
|
|
|
- toolbar: [ 'heading', '|', 'bold', 'italic', '|', 'selectAll' ]
|
|
|
|
|
|
|
+ plugins: [ Essentials, Paragraph, Bold, Italic, Heading, Image, ImageCaption, Table, TableToolbar ],
|
|
|
|
|
+ toolbar: [ 'heading', '|', 'bold', 'italic', '|', 'insertTable', '|', 'selectAll' ]
|
|
|
} )
|
|
} )
|
|
|
.then( editor => {
|
|
.then( editor => {
|
|
|
window.editor = editor;
|
|
window.editor = editor;
|