bold.js 541 B

123456789101112131415161718192021222324
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* global console:false */
  6. 'use strict';
  7. import CKEDITOR from '/ckeditor.js';
  8. import ClassicCreator from '/ckeditor5/creator-classic/classiccreator.js';
  9. import Bold from '/ckeditor5/basic-styles/bold.js';
  10. CKEDITOR.create( '#editor1', {
  11. creator: ClassicCreator,
  12. features: [ Bold ],
  13. toolbar: [ 'bold' ]
  14. } )
  15. .then( editor => {
  16. window.editor = editor;
  17. } )
  18. .catch( err => {
  19. console.error( err.stack );
  20. } );