| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /**
- * @license Copyright (c) 2003-2020, 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',
- '|',
- 'outdent',
- 'indent',
- '|',
- 'blockQuote',
- 'link',
- '|',
- 'mediaEmbed',
- 'insertTable',
- '|',
- 'undo',
- 'redo'
- ],
- viewportTopOffset: window.getViewportTopOffsetConfig()
- },
- table: {
- contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells' ]
- }
- } )
- .then( editor => {
- window.editor = editor;
- document.getElementById( 'demo-word-count' ).appendChild( editor.plugins.get( 'WordCount' ).wordCountContainer );
- } )
- .catch( err => {
- console.error( err.stack );
- } );
|