code.js 1018 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /**
  6. * @module basic-styles/code
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import CodeEditing from './code/codeediting';
  10. import CodeUI from './code/codeui';
  11. import '../theme/code.css';
  12. /**
  13. * The code feature.
  14. *
  15. * For a detailed overview check the {@glink features/basic-styles Basic styles feature documentation}
  16. * and the {@glink api/basic-styles package page}.
  17. *
  18. * This is a "glue" plugin which loads the {@link module:basic-styles/code/codeediting~CodeEditing code editing feature}
  19. * and {@link module:basic-styles/code/codeui~CodeUI code UI feature}.
  20. *
  21. * @extends module:core/plugin~Plugin
  22. */
  23. export default class Code extends Plugin {
  24. /**
  25. * @inheritDoc
  26. */
  27. static get requires() {
  28. return [ CodeEditing, CodeUI ];
  29. }
  30. /**
  31. * @inheritDoc
  32. */
  33. static get pluginName() {
  34. return 'Code';
  35. }
  36. }