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

Commit 824dcc1

Browse files
committed
Other: Added pluginName property.
1 parent 7b73910 commit 824dcc1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/highlightediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ import HighlightCommand from './highlightcommand';
2020
* @extends module:core/plugin~Plugin
2121
*/
2222
export default class HighlightEditing extends Plugin {
23+
/**
24+
* @inheritDoc
25+
*/
26+
static get pluginName() {
27+
return 'HighlightEditing';
28+
}
29+
2330
/**
2431
* @inheritDoc
2532
*/

tests/highlightediting.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ describe( 'HighlightEditing', () => {
3030
editor.destroy();
3131
} );
3232

33+
it( 'should have pluginName', () => {
34+
expect( HighlightEditing.pluginName ).to.equal( 'HighlightEditing' );
35+
} );
36+
3337
it( 'should set proper schema rules', () => {
3438
expect( editor.model.schema.checkAttribute( [ '$block', '$text' ], 'highlight' ) ).to.be.true;
3539
expect( editor.model.schema.checkAttribute( [ '$clipboardHolder', '$text' ], 'highlight' ) ).to.be.true;

0 commit comments

Comments
 (0)