| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /**
- * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
- /* global document, console, window */
- import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
- import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
- ClassicEditor
- .create( document.querySelector( '#editor-semantic' ), {
- plugins: [
- ArticlePluginSet
- ],
- toolbar: [ 'heading', '|', 'undo', 'redo' ],
- image: {
- toolbar: [ 'imageStyle:full', 'imageStyle:side' ]
- }
- } )
- .then( editor => {
- window.editorSemantic = editor;
- } )
- .catch( err => {
- console.error( err.stack );
- } );
- ClassicEditor
- .create( document.querySelector( '#editor-formatting' ), {
- plugins: [
- ArticlePluginSet
- ],
- toolbar: [ 'heading', '|', 'undo', 'redo' ],
- image: {
- styles: [ 'alignLeft', 'alignCenter', 'alignRight' ],
- toolbar: [ 'imageStyle:alignLeft', 'imageStyle:alignCenter', 'imageStyle:alignRight' ]
- }
- } )
- .then( editor => {
- window.editorFormatting = editor;
- } )
- .catch( err => {
- console.error( err.stack );
- } );
|