|
|
@@ -6,14 +6,14 @@
|
|
|
/* globals console, window, document */
|
|
|
|
|
|
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
|
|
|
-import ArticlePreset from '@ckeditor/ckeditor5-presets/src/article';
|
|
|
+import ArticlePluginSet from '../_utils/articlepluginset';
|
|
|
|
|
|
// Replace original submit method to prevent page reload.
|
|
|
document.getElementById( 'form' ).submit = () => {};
|
|
|
|
|
|
ClassicEditor
|
|
|
.create( document.querySelector( '#editor' ), {
|
|
|
- plugins: [ ArticlePreset ],
|
|
|
+ plugins: [ ArticlePluginSet ],
|
|
|
toolbar: [ 'bold', 'italic', 'undo', 'redo' ],
|
|
|
} )
|
|
|
.then( editor => {
|