custom-font-size-numeric-options.js 626 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* globals ClassicEditor, console, window, document */
  6. ClassicEditor
  7. .create( document.querySelector( '#snippet-custom-font-size-numeric-options' ), {
  8. toolbar: {
  9. items: [
  10. 'headings', 'bulletedList', 'numberedList', 'fontSize', 'undo', 'redo'
  11. ],
  12. viewportTopOffset: 60
  13. },
  14. fontSize: {
  15. options: [
  16. 9,
  17. 11,
  18. 13,
  19. 'normal',
  20. 17,
  21. 19,
  22. 21
  23. ]
  24. }
  25. } )
  26. .then( editor => {
  27. window.editor = editor;
  28. } )
  29. .catch( err => {
  30. console.error( err.stack );
  31. } );