Przeglądaj źródła

Other: Added `pluginName` to editing plugin.

Szymon Cofalik 6 lat temu
rodzic
commit
ed67104902

+ 7 - 0
packages/ckeditor5-table/src/tableediting.js

@@ -43,6 +43,13 @@ import '../theme/tableediting.css';
  * @extends module:core/plugin~Plugin
  */
 export default class TableEditing extends Plugin {
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'TableEditing';
+	}
+
 	/**
 	 * @inheritDoc
 	 */

+ 4 - 0
packages/ckeditor5-table/tests/tableediting.js

@@ -41,6 +41,10 @@ describe( 'TableEditing', () => {
 		editor.destroy();
 	} );
 
+	it( 'should have pluginName', () => {
+		expect( TableEditing.pluginName ).to.equal( 'TableEditing' );
+	} );
+
 	it( 'should set proper schema rules', () => {
 		// Table:
 		expect( model.schema.isRegistered( 'table' ) ).to.be.true;