Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Other: Added pluginName to editing plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Oct 10, 2019
1 parent 970ea91 commit 1f76c1e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tableediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 4 additions & 0 deletions tests/tableediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1f76c1e

Please sign in to comment.