8
0

essentials.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 essentials/essentials
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
  10. import Enter from '@ckeditor/ckeditor5-enter/src/enter';
  11. import ShiftEnter from '@ckeditor/ckeditor5-enter/src/shiftenter';
  12. import SelectAll from '@ckeditor/ckeditor5-select-all/src/selectall';
  13. import Typing from '@ckeditor/ckeditor5-typing/src/typing';
  14. import Undo from '@ckeditor/ckeditor5-undo/src/undo';
  15. /**
  16. * A plugin including all essential editing features. It represents a set of features that enables similar functionalities
  17. * to a `<textarea>` element.
  18. *
  19. * It includes:
  20. *
  21. * * {@link module:clipboard/clipboard~Clipboard},
  22. * * {@link module:enter/enter~Enter},
  23. * * {@link module:select-all/selectall~SelectAll},
  24. * * {@link module:enter/shiftenter~ShiftEnter},
  25. * * {@link module:typing/typing~Typing},
  26. * * {@link module:undo/undo~Undo}.
  27. *
  28. * This plugin set does not define any block-level containers (such as {@link module:paragraph/paragraph~Paragraph}).
  29. * If your editor is supposed to handle block content, make sure to include it.
  30. *
  31. * @extends module:core/plugin~Plugin
  32. */
  33. export default class Essentials extends Plugin {
  34. /**
  35. * @inheritDoc
  36. */
  37. static get requires() {
  38. return [ Clipboard, Enter, SelectAll, ShiftEnter, Typing, Undo ];
  39. }
  40. /**
  41. * @inheritDoc
  42. */
  43. static get pluginName() {
  44. return 'Essentials';
  45. }
  46. }