8
0

table.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /**
  6. * @module table/table
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import TableEditing from './tableediting';
  10. import TableUI from './tableui';
  11. import Widget from '@ckeditor/ckeditor5-widget/src/widget';
  12. import '../theme/table.css';
  13. /**
  14. * The table plugin.
  15. *
  16. * It loads the {@link module:table/tableediting~TableEditing table editing feature}
  17. * and {@link module:table/tableui~TableUI table UI feature}.
  18. *
  19. * For a detailed overview, check the {@glink features/table Table feature documentation}.
  20. *
  21. * @extends module:core/plugin~Plugin
  22. */
  23. export default class Table extends Plugin {
  24. /**
  25. * @inheritDoc
  26. */
  27. static get requires() {
  28. return [ TableEditing, TableUI, Widget ];
  29. }
  30. /**
  31. * @inheritDoc
  32. */
  33. static get pluginName() {
  34. return 'Table';
  35. }
  36. }
  37. /**
  38. * The configuration of the table features. Used by the table features in the `@ckeditor/ckeditor5-table` package.
  39. *
  40. * ClassicEditor
  41. * .create( editorElement, {
  42. * table: ... // Table feature options.
  43. * } )
  44. * .then( ... )
  45. * .catch( ... );
  46. *
  47. * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
  48. *
  49. * @interface TableConfig
  50. */