/** * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ /** * @module table/table */ import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; import TableEditing from './tableediting'; import TableUI from './tableui'; import Widget from '@ckeditor/ckeditor5-widget/src/widget'; import '../theme/table.css'; /** * The table plugin. * * It loads the {@link module:table/tableediting~TableEditing table editing feature} * and {@link module:table/tableui~TableUI table UI feature}. * * For a detailed overview, check the {@glink features/table Table feature documentation}. * * @extends module:core/plugin~Plugin */ export default class Table extends Plugin { /** * @inheritDoc */ static get requires() { return [ TableEditing, TableUI, Widget ]; } /** * @inheritDoc */ static get pluginName() { return 'Table'; } } /** * The configuration of the table features. Used by the table features in the `@ckeditor/ckeditor5-table` package. * * ClassicEditor * .create( editorElement, { * table: ... // Table feature options. * } ) * .then( ... ) * .catch( ... ); * * See {@link module:core/editor/editorconfig~EditorConfig all editor options}. * * @interface TableConfig */