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

Commit 71adead

Browse files
committed
Other: Added pluginName property to editing plugins.
1 parent 707b8f0 commit 71adead

File tree

6 files changed

+33
-0
lines changed

6 files changed

+33
-0
lines changed

src/image/imageediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ import ImageInsertCommand from './imageinsertcommand';
3232
* @extends module:core/plugin~Plugin
3333
*/
3434
export default class ImageEditing extends Plugin {
35+
/**
36+
* @inheritDoc
37+
*/
38+
static get pluginName() {
39+
return 'ImageEditing';
40+
}
41+
3542
/**
3643
* @inheritDoc
3744
*/

src/imagecaption/imagecaptionediting.js

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

src/imagetextalternative/imagetextalternativeediting.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
1818
* @extends module:core/plugin~Plugin
1919
*/
2020
export default class ImageTextAlternativeEditing extends Plugin {
21+
/**
22+
* @inheritDoc
23+
*/
24+
static get pluginName() {
25+
return 'ImageTextAlternativeEditing';
26+
}
27+
2128
/**
2229
* @inheritDoc
2330
*/

tests/image/imageediting.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ describe( 'ImageEditing', () => {
3939
} );
4040
} );
4141

42+
it( 'should have pluginName', () => {
43+
expect( ImageEditing.pluginName ).to.equal( 'ImageEditing' );
44+
} );
45+
4246
it( 'should be loaded', () => {
4347
expect( editor.plugins.get( ImageEditing ) ).to.be.instanceOf( ImageEditing );
4448
} );

tests/imagecaption/imagecaptionediting.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ describe( 'ImageCaptionEditing', () => {
4646
} );
4747
} );
4848

49+
it( 'should have pluginName', () => {
50+
expect( ImageCaptionEditing.pluginName ).to.equal( 'ImageCaptionEditing' );
51+
} );
52+
4953
it( 'should be loaded', () => {
5054
expect( editor.plugins.get( ImageCaptionEditing ) ).to.be.instanceOf( ImageCaptionEditing );
5155
} );

tests/imagetextalternative/imagetextalternativeediting.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ describe( 'ImageTextAlternativeEditing', () => {
2020
} );
2121
} );
2222

23+
it( 'should have pluginName', () => {
24+
expect( ImageTextAlternativeEditing.pluginName ).to.equal( 'ImageTextAlternativeEditing' );
25+
} );
26+
2327
it( 'should register ImageAlternativeTextCommand', () => {
2428
expect( editor.commands.get( 'imageTextAlternative' ) ).to.be.instanceOf( ImageTextAlternativeCommand );
2529
} );

0 commit comments

Comments
 (0)