8
0

highlight.js 918 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals console, window, document */
  6. import ClassicEditor from '../../../ckeditor5-editor-classic/src/classiceditor';
  7. import ArticlePluginSet from '../../../ckeditor5-core/tests/_utils/articlepluginset';
  8. import Highlight from '../../src/highlight';
  9. ClassicEditor
  10. .create( document.querySelector( '#editor' ), {
  11. plugins: [ ArticlePluginSet, Highlight ],
  12. toolbar: [
  13. 'headings',
  14. 'highlightDropdown',
  15. // 'highlight:marker',
  16. // 'highlight:greenMarker',
  17. // 'highlight:pinkMarker',
  18. // 'highlight:bluePen',
  19. // 'highlight:redPen',
  20. // 'removeHighlight',
  21. 'bold', '|', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo'
  22. ]
  23. } )
  24. .then( editor => {
  25. window.editor = editor;
  26. } )
  27. .catch( err => {
  28. console.error( err.stack );
  29. } );