enableToggle : true,
setValue : function(v) {
// this trigger toggle.
-
- var b = block();
- this.setText(b.caption_display == 'block' ? "Hide Caption" : "Show Caption");
- this.setPressed(b.caption_display == 'block' ? false: true);
+
+ this.setText(v ? "Hide Caption" : "Show Caption");
+ this.setPressed(!v);
},
listeners : {
toggle: function (btn, state)
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});