blockquote.js 661 B

123456789101112131415161718192021222324
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* global document, console, window */
  6. import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classic';
  7. import ArticlePreset from '@ckeditor/ckeditor5-presets/src/article';
  8. import BlockQuote from '../../src/blockquote';
  9. ClassicEditor.create( document.querySelector( '#editor' ), {
  10. plugins: [
  11. ArticlePreset,
  12. BlockQuote
  13. ],
  14. toolbar: [ 'headings', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ]
  15. } )
  16. .then( editor => {
  17. window.editor = editor;
  18. } )
  19. .catch( err => {
  20. console.error( err.stack );
  21. } );