formatremovebtn.lzx
<stylishbutton name="unformatBtn" iconname="resetfmt" width="26" focusable="false" style="formatbtn_style" y="${Math.round((parent.height-this.height)/2)}">
<attribute name="toolbar" value="$once{this.parent}"/>
<attribute name="editor" value="$once{this.parent.editor}"/>
<tooltip>Remove formatting</tooltip>
<handler name="onclick" method="doClick"/>
<method name="doClick" args="ignore">
// Debug.write("unformat");
if (this.toolbar._passthruchanges) {
this.editor._resetFormatToDefaults();
this.editor.setCurrentFormat(this.editor.currentformat);
}
this.editor.delegateRestoreSelection();
</method>
<handler name="onmouseover">
this.editor.saveSelectionRegion();
</handler>
</stylishbutton>
Cross References
Named Instances