From 1f76c1e8fa2e0425dd8aad58d90c0f270c090bec Mon Sep 17 00:00:00 2001 From: Szymon Cofalik Date: Thu, 10 Oct 2019 16:28:11 +0200 Subject: [PATCH] Other: Added `pluginName` to editing plugin. --- src/tableediting.js | 7 +++++++ tests/tableediting.js | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/src/tableediting.js b/src/tableediting.js index f52d78d0..a561cb50 100644 --- a/src/tableediting.js +++ b/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 */ diff --git a/tests/tableediting.js b/tests/tableediting.js index 023d2eed..a9f6753c 100644 --- a/tests/tableediting.js +++ b/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;