diff --git a/src/blockquoteui.js b/src/blockquoteui.js index d95badc..fa8cb4f 100644 --- a/src/blockquoteui.js +++ b/src/blockquoteui.js @@ -35,7 +35,8 @@ export default class BlockQuoteUI extends Plugin { buttonView.set( { label: t( 'Block quote' ), icon: quoteIcon, - tooltip: true + tooltip: true, + isToggleable: true } ); // Bind button model to command. diff --git a/tests/blockquoteui.js b/tests/blockquoteui.js index 270e89d..650306f 100644 --- a/tests/blockquoteui.js +++ b/tests/blockquoteui.js @@ -40,6 +40,7 @@ describe( 'BlockQuoteUI', () => { expect( button ).to.have.property( 'label', 'Block quote' ); expect( button ).to.have.property( 'icon' ); expect( button ).to.have.property( 'tooltip', true ); + expect( button ).to.have.property( 'isToggleable', true ); } ); it( 'has isOn bound to command\'s value', () => {