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

Commit 93e8727

Browse files
committed
Other: Added pluginName property to editing plugin.
1 parent b917f72 commit 93e8727

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/headingediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ const defaultModelElement = 'paragraph';
2323
* @extends module:core/plugin~Plugin
2424
*/
2525
export default class HeadingEditing extends Plugin {
26+
/**
27+
* @inheritDoc
28+
*/
29+
static get pluginName() {
30+
return 'HeadingEditing';
31+
}
32+
2633
/**
2734
* @inheritDoc
2835
*/

tests/headingediting.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ describe( 'HeadingEditing', () => {
2525
} );
2626
} );
2727

28+
it( 'should have pluginName', () => {
29+
expect( HeadingEditing.pluginName ).to.equal( 'HeadingEditing' );
30+
} );
31+
2832
it( 'should be loaded', () => {
2933
expect( editor.plugins.get( HeadingEditing ) ).to.be.instanceOf( HeadingEditing );
3034
} );

0 commit comments

Comments
 (0)