table.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. * @extends module:core/plugin~Plugin
  17. */
  18. export default class Table extends Plugin {
  19. /**
  20. * @inheritDoc
  21. */
  22. static get requires() {
  23. return [ TableEditing, TableUI, Widget ];
  24. }
  25. /**
  26. * @inheritDoc
  27. */
  28. static get pluginName() {
  29. return 'Table';
  30. }
  31. }
  32. /**
  33. * The configuration of the table features. Used by the table features in the `@ckeditor/ckeditor5-table` package.
  34. *
  35. * ClassicEditor
  36. * .create( editorElement, {
  37. * table: ... // Table feature options.
  38. * } )
  39. * .then( ... )
  40. * .catch( ... );
  41. *
  42. * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
  43. *
  44. * @interface TableConfig
  45. */