@@ -201,6 +201,7 @@ export default class LinkUI extends Plugin {
button.icon = linkIcon;
button.keystroke = linkKeystroke;
button.tooltip = true;
+ button.isToggleable = true;
// Bind button to the command.
button.bind( 'isOn', 'isEnabled' ).to( linkCommand, 'value', 'isEnabled' );
@@ -85,6 +85,10 @@ describe( 'LinkUI', () => {
expect( linkButton ).to.be.instanceOf( ButtonView );
} );
+ it( 'should be toggleable button', () => {
+ expect( linkButton.isToggleable ).to.be.true;
+ } );
+
it( 'should be bound to the link command', () => {
const command = editor.commands.get( 'link' );