|
@@ -6,13 +6,20 @@
|
|
|
/* globals console:false, document, window */
|
|
/* globals console:false, document, window */
|
|
|
|
|
|
|
|
import ClassicEditor from '/ckeditor5/editor-classic/classic.js';
|
|
import ClassicEditor from '/ckeditor5/editor-classic/classic.js';
|
|
|
|
|
+import Enter from '/ckeditor5/enter/enter.js';
|
|
|
|
|
+import Typing from '/ckeditor5/typing/typing.js';
|
|
|
|
|
+import Heading from '/ckeditor5/heading/heading.js';
|
|
|
|
|
+import Paragraph from '/ckeditor5/paragraph/paragraph.js';
|
|
|
|
|
+import Undo from '/ckeditor5/undo/undo.js';
|
|
|
|
|
+import Bold from '/ckeditor5/basic-styles/bold.js';
|
|
|
|
|
+import Italic from '/ckeditor5/basic-styles/italic.js';
|
|
|
import testUtils from '/tests/utils/_utils/utils.js';
|
|
import testUtils from '/tests/utils/_utils/utils.js';
|
|
|
|
|
|
|
|
let editor, editable, observer;
|
|
let editor, editable, observer;
|
|
|
|
|
|
|
|
function initEditor() {
|
|
function initEditor() {
|
|
|
ClassicEditor.create( document.querySelector( '#editor' ), {
|
|
ClassicEditor.create( document.querySelector( '#editor' ), {
|
|
|
- features: [ 'enter', 'typing', 'paragraph', 'undo', 'heading', 'basic-styles/bold', 'basic-styles/italic' ],
|
|
|
|
|
|
|
+ features: [ Enter, Typing, Paragraph, Undo, Heading, Bold, Italic ],
|
|
|
toolbar: [ 'headings', 'bold', 'italic', 'undo', 'redo' ]
|
|
toolbar: [ 'headings', 'bold', 'italic', 'undo', 'redo' ]
|
|
|
} )
|
|
} )
|
|
|
.then( newEditor => {
|
|
.then( newEditor => {
|