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

123456789101112131415161718192021222324252627282930313233343536
  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. import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
  7. ClassicEditor
  8. .create( document.querySelector( '#snippet-custom-font-size-numeric-options' ), {
  9. cloudServices: CS_CONFIG,
  10. toolbar: {
  11. items: [
  12. 'heading', '|', 'fontSize', 'bulletedList', 'numberedList', 'undo', 'redo'
  13. ],
  14. viewportTopOffset: 60
  15. },
  16. fontSize: {
  17. options: [
  18. 9,
  19. 11,
  20. 13,
  21. 'default',
  22. 17,
  23. 19,
  24. 21
  25. ]
  26. }
  27. } )
  28. .then( editor => {
  29. window.editor = editor;
  30. } )
  31. .catch( err => {
  32. console.error( err.stack );
  33. } );