8
0
Просмотр исходного кода

Other: Add Widget to Table feature requires.

Maciej Gołaszewski 7 лет назад
Родитель
Сommit
02de5500f1
2 измененных файлов с 5 добавлено и 3 удалено
  1. 2 1
      packages/ckeditor5-table/src/table.js
  2. 3 2
      packages/ckeditor5-table/tests/table.js

+ 2 - 1
packages/ckeditor5-table/src/table.js

@@ -11,6 +11,7 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 
 import TablesEditing from './tableediting';
 import TablesUI from './tableui';
+import Widget from '@ckeditor/ckeditor5-widget/src/widget';
 
 /**
  * The table plugin.
@@ -22,7 +23,7 @@ export default class Table extends Plugin {
 	 * @inheritDoc
 	 */
 	static get requires() {
-		return [ TablesEditing, TablesUI ];
+		return [ TablesEditing, TablesUI, Widget ];
 	}
 
 	/**

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

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