|
@@ -9,16 +9,17 @@ import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'
|
|
|
|
|
|
|
|
import ArticlePreset from '../../src/article';
|
|
import ArticlePreset from '../../src/article';
|
|
|
|
|
|
|
|
-ClassicEditor.create( document.querySelector( '#editor' ), {
|
|
|
|
|
- plugins: [ ArticlePreset ],
|
|
|
|
|
- toolbar: [ 'headings', 'bold', 'italic', 'link', 'unlink', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ],
|
|
|
|
|
- image: {
|
|
|
|
|
- toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
|
|
|
|
|
- }
|
|
|
|
|
-} )
|
|
|
|
|
-.then( editor => {
|
|
|
|
|
- window.editor = editor;
|
|
|
|
|
-} )
|
|
|
|
|
-.catch( err => {
|
|
|
|
|
- console.error( err.stack );
|
|
|
|
|
-} );
|
|
|
|
|
|
|
+ClassicEditor
|
|
|
|
|
+ .create( document.querySelector( '#editor' ), {
|
|
|
|
|
+ plugins: [ ArticlePreset ],
|
|
|
|
|
+ toolbar: [ 'headings', 'bold', 'italic', 'link', 'unlink', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ],
|
|
|
|
|
+ image: {
|
|
|
|
|
+ toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
|
|
|
|
|
+ }
|
|
|
|
|
+ } )
|
|
|
|
|
+ .then( editor => {
|
|
|
|
|
+ window.editor = editor;
|
|
|
|
|
+ } )
|
|
|
|
|
+ .catch( err => {
|
|
|
|
|
+ console.error( err.stack );
|
|
|
|
|
+ } );
|