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

Commit d91773f

Browse files
committed
Other: Added pluginName property to editing plugins.
1 parent 04732d9 commit d91773f

File tree

14 files changed

+77
-0
lines changed

14 files changed

+77
-0
lines changed

src/bold/boldediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ const BOLD = 'bold';
2121
* @extends module:core/plugin~Plugin
2222
*/
2323
export default class BoldEditing extends Plugin {
24+
/**
25+
* @inheritDoc
26+
*/
27+
static get pluginName() {
28+
return 'BoldEditing';
29+
}
30+
2431
/**
2532
* @inheritDoc
2633
*/

src/code/codeediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ const CODE = 'code';
2121
* @extends module:core/plugin~Plugin
2222
*/
2323
export default class CodeEditing extends Plugin {
24+
/**
25+
* @inheritDoc
26+
*/
27+
static get pluginName() {
28+
return 'CodeEditing';
29+
}
30+
2431
/**
2532
* @inheritDoc
2633
*/

src/italic/italicediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ const ITALIC = 'italic';
2121
* @extends module:core/plugin~Plugin
2222
*/
2323
export default class ItalicEditing extends Plugin {
24+
/**
25+
* @inheritDoc
26+
*/
27+
static get pluginName() {
28+
return 'ItalicEditing';
29+
}
30+
2431
/**
2532
* @inheritDoc
2633
*/

src/strikethrough/strikethroughediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ const STRIKETHROUGH = 'strikethrough';
2222
* @extends module:core/plugin~Plugin
2323
*/
2424
export default class StrikethroughEditing extends Plugin {
25+
/**
26+
* @inheritDoc
27+
*/
28+
static get pluginName() {
29+
return 'StrikethroughEditing';
30+
}
31+
2532
/**
2633
* @inheritDoc
2734
*/

src/subscript/subscriptediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ const SUBSCRIPT = 'subscript';
2121
* @extends module:core/plugin~Plugin
2222
*/
2323
export default class SubscriptEditing extends Plugin {
24+
/**
25+
* @inheritDoc
26+
*/
27+
static get pluginName() {
28+
return 'SubscriptEditing';
29+
}
30+
2431
/**
2532
* @inheritDoc
2633
*/

src/superscript/superscriptediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ const SUPERSCRIPT = 'superscript';
2121
* @extends module:core/plugin~Plugin
2222
*/
2323
export default class SuperscriptEditing extends Plugin {
24+
/**
25+
* @inheritDoc
26+
*/
27+
static get pluginName() {
28+
return 'SuperscriptEditing';
29+
}
30+
2431
/**
2532
* @inheritDoc
2633
*/

src/underline/underlineediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ const UNDERLINE = 'underline';
2121
* @extends module:core/plugin~Plugin
2222
*/
2323
export default class UnderlineEditing extends Plugin {
24+
/**
25+
* @inheritDoc
26+
*/
27+
static get pluginName() {
28+
return 'UnderlineEditing';
29+
}
30+
2431
/**
2532
* @inheritDoc
2633
*/

tests/bold/boldediting.js

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

34+
it( 'should have pluginName', () => {
35+
expect( BoldEditing.pluginName ).to.equal( 'BoldEditing' );
36+
} );
37+
3438
it( 'should be loaded', () => {
3539
expect( editor.plugins.get( BoldEditing ) ).to.be.instanceOf( BoldEditing );
3640
} );

tests/code/codeediting.js

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

33+
it( 'should have pluginName', () => {
34+
expect( CodeEditing.pluginName ).to.equal( 'CodeEditing' );
35+
} );
36+
3337
it( 'should be loaded', () => {
3438
expect( editor.plugins.get( CodeEditing ) ).to.be.instanceOf( CodeEditing );
3539
} );

tests/italic/italicediting.js

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

33+
it( 'should have pluginName', () => {
34+
expect( ItalicEditing.pluginName ).to.equal( 'ItalicEditing' );
35+
} );
36+
3337
it( 'should be loaded', () => {
3438
expect( editor.plugins.get( ItalicEditing ) ).to.be.instanceOf( ItalicEditing );
3539
} );

0 commit comments

Comments
 (0)