PDA

View Full Version : HtmlEditor cleanHtml



kape123
4 Oct 2007, 8:30 PM
I want to remove empty span elements using this function of HtmlEditor... in documentation it says that I should 'override' this method... can someone give me example on how to do that?

Tnx in advance!

fay
5 Oct 2007, 3:17 AM
Ext.override (http://extjs.com/deploy/ext/docs/output/Ext.html#override) so...


Ext.override(Ext.form.HtmlEditor, {
cleanHtml : function(html){
//
}
});

Typically, you'd create an overrides.js file and add the above to it. overrides.js would come after your extjs includes in any html files.