Roo/htmleditor/BlockFigure.js
authorAlan <alan@roojs.com>
Tue, 15 Mar 2022 07:28:49 +0000 (15:28 +0800)
committerAlan <alan@roojs.com>
Tue, 15 Mar 2022 07:28:49 +0000 (15:28 +0800)
Roo/htmleditor/BlockFigure.js

index 5ceb444..729d685 100644 (file)
@@ -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)