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-ui/225
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Jul 5, 2017
2 parents cde71fc + b806152 commit 165863f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ export default class Image extends Plugin {
* @inheritDoc
*/
static get pluginName() {
return 'image/image';
return 'Image';
}

/**
* @inheritDoc
*/
init() {
const editor = this.editor;
const contextualToolbar = editor.plugins.get( 'ui/contextualtoolbar' );
const contextualToolbar = editor.plugins.get( 'ContextualToolbar' );

// If `ContextualToolbar` plugin is loaded, it should be disabled for images
// which have their own toolbar to avoid duplication.
Expand Down
2 changes: 1 addition & 1 deletion src/imagecaption.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export default class ImageCaption extends Plugin {
* @inheritDoc
*/
static get pluginName() {
return 'image/imagecaption';
return 'ImageCaption';
}
}
2 changes: 1 addition & 1 deletion src/imagestyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class ImageStyle extends Plugin {
* @inheritDoc
*/
static get pluginName() {
return 'image/imagestyle';
return 'ImageStyle';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/imagetextalternative.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class ImageTextAlternative extends Plugin {
* @inheritDoc
*/
static get pluginName() {
return 'image/imagetextalternative';
return 'ImageTextAlternative';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/imagetoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class ImageToolbar extends Plugin {
* @inheritDoc
*/
static get pluginName() {
return 'image/imagetoolbar';
return 'ImageToolbar';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ describe( 'Image', () => {
plugins: [ Image, ContextualToolbar, Paragraph ]
} )
.then( newEditor => {
const balloon = newEditor.plugins.get( 'ui/contextualballoon' );
const contextualToolbar = newEditor.plugins.get( 'ui/contextualtoolbar' );
const balloon = newEditor.plugins.get( 'ContextualBalloon' );
const contextualToolbar = newEditor.plugins.get( 'ContextualToolbar' );

newEditor.editing.view.isFocused = true;

Expand Down

0 comments on commit 165863f

Please sign in to comment.