From bb204203f5f64dd13b256263fd398e1463d4eaf9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 24 Apr 2014 09:13:59 +0200 Subject: [PATCH 1/1] editor: minor usability tweak Make toolbar paragraph/header icon active even when already in a paragraph/header. --- src/editor/plugins/core/switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/plugins/core/switch.js b/src/editor/plugins/core/switch.js index ff49eb8..edb8e95 100644 --- a/src/editor/plugins/core/switch.js +++ b/src/editor/plugins/core/switch.js @@ -41,7 +41,7 @@ var createSwitchAction = function(createParams) { description = gettext('Switch to') + ' ' + createParams.to.name; return _.extend(state, { - allowed: !!toSwitch, + allowed: !!toSwitch || alreadyInTarget, toggled: alreadyInTarget, description: description, execute: alreadyInTarget ? function() {} : function(callback) { -- 2.20.1