table.js 617 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /* globals ClassicEditor, console, window, document */
  6. ClassicEditor
  7. .create( document.querySelector( '#snippet-table' ), {
  8. table: {
  9. contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells' ]
  10. },
  11. image: {
  12. toolbar: [
  13. 'imageStyle:full',
  14. 'imageStyle:side',
  15. '|',
  16. 'imageTextAlternative'
  17. ]
  18. }
  19. } )
  20. .then( editor => {
  21. window.editor = editor;
  22. } )
  23. .catch( err => {
  24. console.error( err.stack );
  25. } );