font-family.js 515 B

12345678910111213141516171819202122
  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-font-family' ), {
  8. toolbar: {
  9. items: [
  10. 'headings', '|', 'bulletedList', 'numberedList', 'fontFamily', 'undo', 'redo'
  11. ],
  12. viewportTopOffset: 60
  13. }
  14. } )
  15. .then( editor => {
  16. window.editor = editor;
  17. } )
  18. .catch( err => {
  19. console.error( err.stack );
  20. } );