From 1ae794fd36ef6570a7b06810a9b7b0a3e1ea6155 Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 15 Mar 2022 15:28:49 +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..729d685200 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); }, listeners : { toggle: function (btn, state) -- 2.39.2