From: Alan Date: Tue, 15 Mar 2022 07:34:20 +0000 (+0800) Subject: Roo/htmleditor/BlockFigure.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=1ce0612712cb5f2ea9d8ae2bb82f08aca5fe9cd1 Roo/htmleditor/BlockFigure.js --- diff --git a/Roo/htmleditor/BlockFigure.js b/Roo/htmleditor/BlockFigure.js index 5ceb444902..b7f3fc61da 100644 --- a/Roo/htmleditor/BlockFigure.js +++ b/Roo/htmleditor/BlockFigure.js @@ -237,7 +237,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { // this trigger toggle. this.setText(v ? "Hide Caption" : "Show Caption"); - this.setPressed(v); + this.setPressed(v != 'block'); }, listeners : { toggle: function (btn, state)