8
0

table.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /**
  2. * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  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. * For a detailed overview, check the {@glink features/table Table feature documentation}.
  17. *
  18. * This is a "glue" plugin which loads the {@link module:table/tableediting~TableEditing table editing feature}
  19. * and {@link module:table/tableui~TableUI table UI feature}.
  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. */
  51. /**
  52. * The configuration of the {@link module:table/table~Table} feature.
  53. *
  54. * Read more in {@link module:table/table~TableConfig}.
  55. *
  56. * @member {module:table/table~TableConfig} module:core/editor/editorconfig~EditorConfig#table
  57. */