We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d860d0 commit db1f5a0Copy full SHA for db1f5a0
src/main.js
@@ -1001,6 +1001,10 @@ textAngular.directive('textAngularToolbar', [
1001
return scope._parent;
1002
},
1003
isDisabled: function(){
1004
+ // view selection button is always enabled since it doesn not depend on a selction!
1005
+ if (this.name === 'html' && scope._parent.startAction) {
1006
+ return false;
1007
+ }
1008
// to set your own disabled logic set a function or boolean on the tool called 'disabled'
1009
return ( // this bracket is important as without it it just returns the first bracket and ignores the rest
1010
// when the button's disabled function/value evaluates to true
0 commit comments