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/1404
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Aug 13, 2019
2 parents 3167ec4 + 6c74d59 commit 2ce2a75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/imagestyle/imagestyleediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { normalizeImageStyles } from './utils';
* The image style engine plugin. It sets the default configuration, creates converters and registers
* {@link module:image/imagestyle/imagestylecommand~ImageStyleCommand ImageStyleCommand}.
*
* @extends {module:core/plugin~Plugin}
* @extends module:core/plugin~Plugin
*/
export default class ImageStyleEditing extends Plugin {
/**
Expand Down
3 changes: 2 additions & 1 deletion src/imagestyle/imagestyleui.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export default class ImageStyleUI extends Plugin {
view.set( {
label: style.title,
icon: style.icon,
tooltip: true
tooltip: true,
isToggleable: true
} );

view.bind( 'isEnabled' ).to( command, 'isEnabled' );
Expand Down
1 change: 1 addition & 0 deletions tests/imagestyle/imagestyleui.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ describe( 'ImageStyleUI', () => {
expect( buttonView ).to.be.instanceOf( ButtonView );
expect( buttonView.label ).to.equal( style.title );
expect( buttonView.icon ).to.equal( style.icon );
expect( buttonView.isToggleable ).to.be.true;

command.isEnabled = true;
expect( buttonView.isEnabled ).to.be.true;
Expand Down

0 comments on commit 2ce2a75

Please sign in to comment.