|
@@ -6,15 +6,15 @@
|
|
|
/* global document, console, window */
|
|
/* global document, console, window */
|
|
|
|
|
|
|
|
import ClassicEditor from '/ckeditor5/editor-classic/classic.js';
|
|
import ClassicEditor from '/ckeditor5/editor-classic/classic.js';
|
|
|
-import EnterFeature from '/ckeditor5/enter/enter.js';
|
|
|
|
|
-import TypingFeature from '/ckeditor5/typing/typing.js';
|
|
|
|
|
-import ParagraphFeature from '/ckeditor5/paragraph/paragraph.js';
|
|
|
|
|
-import HeadingFeature from '/ckeditor5/heading/heading.js';
|
|
|
|
|
-import ImageFeature from '/ckeditor5/image/image.js';
|
|
|
|
|
-import UndoFeature from '/ckeditor5/undo/undo.js';
|
|
|
|
|
|
|
+import EnterPlugin from '/ckeditor5/enter/enter.js';
|
|
|
|
|
+import TypingPlugin from '/ckeditor5/typing/typing.js';
|
|
|
|
|
+import ParagraphPlugin from '/ckeditor5/paragraph/paragraph.js';
|
|
|
|
|
+import HeadingPlugin from '/ckeditor5/heading/heading.js';
|
|
|
|
|
+import ImagePlugin from '/ckeditor5/image/image.js';
|
|
|
|
|
+import UndoPlugin from '/ckeditor5/undo/undo.js';
|
|
|
|
|
|
|
|
ClassicEditor.create( document.querySelector( '#editor' ), {
|
|
ClassicEditor.create( document.querySelector( '#editor' ), {
|
|
|
- features: [ EnterFeature, TypingFeature, ParagraphFeature, HeadingFeature, ImageFeature, UndoFeature ],
|
|
|
|
|
|
|
+ plugins: [ EnterPlugin, TypingPlugin, ParagraphPlugin, HeadingPlugin, ImagePlugin, UndoPlugin ],
|
|
|
toolbar: [ 'headings', 'undo', 'redo' ]
|
|
toolbar: [ 'headings', 'undo', 'redo' ]
|
|
|
} )
|
|
} )
|
|
|
.then( editor => {
|
|
.then( editor => {
|