| 123456789101112131415161718192021222324252627282930313233343536373839 |
- /**
- * @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, window, console, ClassicEditor */
- ClassicEditor
- .create( document.querySelector( '#demo-editor' ), {
- toolbar: {
- items: [
- 'heading',
- 'bold',
- 'italic',
- 'bulletedList',
- 'numberedList',
- 'blockQuote',
- 'link',
- '|',
- 'mediaEmbed',
- 'insertTable',
- '|',
- 'undo',
- 'redo'
- ],
- viewportTopOffset: window.getViewportTopOffsetConfig()
- },
- table: {
- contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells' ]
- }
- } )
- .then( editor => {
- window.editor = editor;
- document.getElementById( 'demo-word-counter' ).appendChild( editor.plugins.get( 'WordCount' ).wordCountContainer );
- } )
- .catch( err => {
- console.error( err.stack );
- } );
|