From 1ce0612712cb5f2ea9d8ae2bb82f08aca5fe9cd1 Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 15 Mar 2022 15:34:20 +0800 Subject: [PATCH] Roo/htmleditor/BlockFigure.js --- Roo/htmleditor/BlockFigure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2