浏览代码

Made table selection and table clipboard core table features.

Aleksander Nowodzinski 5 年之前
父节点
当前提交
946b0bc2c3
共有 2 个文件被更改,包括 13 次插入5 次删除
  1. 9 3
      packages/ckeditor5-table/src/table.js
  2. 4 2
      packages/ckeditor5-table/tests/table.js

+ 9 - 3
packages/ckeditor5-table/src/table.js

@@ -11,6 +11,8 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 
 import TableEditing from './tableediting';
 import TableUI from './tableui';
+import TableSelection from './tableselection';
+import TableClipboard from './tableclipboard';
 import Widget from '@ckeditor/ckeditor5-widget/src/widget';
 
 import '../theme/table.css';
@@ -20,8 +22,12 @@ import '../theme/table.css';
  *
  * For a detailed overview, check the {@glink features/table Table feature documentation}.
  *
- * This is a "glue" plugin that loads the {@link module:table/tableediting~TableEditing table editing feature}
- * and {@link module:table/tableui~TableUI table UI feature}.
+ * This is a "glue" plugin that loads the following table features:
+ *
+ * * {@link module:table/tableediting~TableEditing editing feature},
+ * * {@link module:table/tableselection~TableSelection selection feature},
+ * * {@link module:table/tableclipboar~TableClipboard clipboard feature},
+ * * {@link module:table/tableui~TableUI UI feature}.
  *
  * @extends module:core/plugin~Plugin
  */
@@ -30,7 +36,7 @@ export default class Table extends Plugin {
 	 * @inheritDoc
 	 */
 	static get requires() {
-		return [ TableEditing, TableUI, Widget ];
+		return [ TableEditing, TableUI, TableSelection, TableClipboard, Widget ];
 	}
 
 	/**

+ 4 - 2
packages/ckeditor5-table/tests/table.js

@@ -6,11 +6,13 @@
 import Table from '../src/table';
 import TableEditing from '../src/tableediting';
 import TableUI from '../src/tableui';
+import TableSelection from '../src/tableselection';
+import TableClipboard from '../src/tableclipboard';
 import Widget from '@ckeditor/ckeditor5-widget/src/widget';
 
 describe( 'Table', () => {
-	it( 'requires TableEditing, TableUI and Widget', () => {
-		expect( Table.requires ).to.deep.equal( [ TableEditing, TableUI, Widget ] );
+	it( 'requires TableEditing, TableUI, TableSelection, TableClipboard, and Widget', () => {
+		expect( Table.requires ).to.deep.equal( [ TableEditing, TableUI, TableSelection, TableClipboard, Widget ] );
 	} );
 
 	it( 'has proper name', () => {