8
0
Просмотр исходного кода

Fix: The horionztal rule button should not be toggleable.

Marek Lewandowski 6 лет назад
Родитель
Сommit
53da1d67e1

+ 1 - 2
packages/ckeditor5-horizontal-line/src/horizontalruleui.js

@@ -29,8 +29,7 @@ export default class HorizontalRuleUI extends Plugin {
 			view.set( {
 				label: t( 'Horizontal rule' ),
 				icon: horizontalRuleIcon,
-				tooltip: true,
-				isToggleable: true
+				tooltip: true
 			} );
 
 			view.bind( 'isEnabled' ).to( command, 'isEnabled' );

+ 1 - 1
packages/ckeditor5-horizontal-line/tests/horizontalruleui.js

@@ -44,7 +44,7 @@ describe( 'HorizontalRuleUI', () => {
 		expect( horizontalRuleView ).to.be.instanceOf( ButtonView );
 		expect( horizontalRuleView.label ).to.equal( 'Horizontal rule' );
 		expect( horizontalRuleView.icon ).to.match( /<svg / );
-		expect( horizontalRuleView.isToggleable ).to.be.true;
+		expect( horizontalRuleView.isToggleable ).to.be.false;
 	} );
 
 	it( 'should execute horizontalRule command on model execute event', () => {