roojs-ui.js
[roojs1] / roojs-ui-debug.js
index 62eacbf..afa4d72 100644 (file)
@@ -6657,7 +6657,7 @@ Roo.extend(Roo.Button, Roo.util.Observable, {
                 this.pressed = false;
             }
         }
-       }
+       },
        
     /**
      * If a state it passed, it becomes the pressed state otherwise the current state is toggled.
@@ -23596,7 +23596,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)
@@ -25636,7 +25636,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
             new Roo.htmleditor.FilterStyleToTag({ node : d });
             new Roo.htmleditor.FilterAttributes({
                 node : d,
-                attrib_white : ['href', 'src', 'name', 'align', 'colspan', 'rowspan'],
+                attrib_white : ['href', 'src', 'name', 'align', 'colspan', 'rowspan', 'data-display'],
                 attrib_clean : ['href', 'src' ] 
             });
             new Roo.htmleditor.FilterBlack({ node : d, tag : this.black});