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

Commit

Permalink
Merge branch 'master' into t/ckeditor5-image/310
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewand committed Oct 14, 2019
2 parents 376beaa + 71adead commit a15e79a
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/image/imageediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ import ImageInsertCommand from './imageinsertcommand';
* @extends module:core/plugin~Plugin
*/
export default class ImageEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'ImageEditing';
}

/**
* @inheritDoc
*/
Expand Down
7 changes: 7 additions & 0 deletions src/imagecaption/imagecaptionediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ import { captionElementCreator, getCaptionFromImage, matchImageCaption } from '.
* @extends module:core/plugin~Plugin
*/
export default class ImageCaptionEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'ImageCaptionEditing';
}

/**
* @inheritDoc
*/
Expand Down
7 changes: 7 additions & 0 deletions src/imagetextalternative/imagetextalternativeediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
* @extends module:core/plugin~Plugin
*/
export default class ImageTextAlternativeEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'ImageTextAlternativeEditing';
}

/**
* @inheritDoc
*/
Expand Down
4 changes: 4 additions & 0 deletions tests/image/imageediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ describe( 'ImageEditing', () => {
} );
} );

it( 'should have pluginName', () => {
expect( ImageEditing.pluginName ).to.equal( 'ImageEditing' );
} );

it( 'should be loaded', () => {
expect( editor.plugins.get( ImageEditing ) ).to.be.instanceOf( ImageEditing );
} );
Expand Down
4 changes: 4 additions & 0 deletions tests/imagecaption/imagecaptionediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ describe( 'ImageCaptionEditing', () => {
} );
} );

it( 'should have pluginName', () => {
expect( ImageCaptionEditing.pluginName ).to.equal( 'ImageCaptionEditing' );
} );

it( 'should be loaded', () => {
expect( editor.plugins.get( ImageCaptionEditing ) ).to.be.instanceOf( ImageCaptionEditing );
} );
Expand Down
4 changes: 4 additions & 0 deletions tests/imagetextalternative/imagetextalternativeediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ describe( 'ImageTextAlternativeEditing', () => {
} );
} );

it( 'should have pluginName', () => {
expect( ImageTextAlternativeEditing.pluginName ).to.equal( 'ImageTextAlternativeEditing' );
} );

it( 'should register ImageAlternativeTextCommand', () => {
expect( editor.commands.get( 'imageTextAlternative' ) ).to.be.instanceOf( ImageTextAlternativeCommand );
} );
Expand Down

0 comments on commit a15e79a

Please sign in to comment.