PDA

View Full Version : [1.1.1] HtmlEditor drops useCSS and styleWithCSS setting



MarkT
29 Nov 2007, 9:33 AM
I noticed that Firefox was loosing the useCSS and styleWithCSS settings. It only seemed to happen when I would toggle SourceEdit. I was able to fix it by setting them again at the end of toggleSourceEdit(), right after setSize() is called:

this.setSize(this.wrap.getSize());
if (Ext.isGecko) {
try {
this.execCmd('useCSS', true);
this.execCmd('styleWithCSS', false);
} catch(e){}
}
this.fireEvent('editmodechange', this, this.sourceEditMode);
I'm not sure if it is the code in toggleSourceEdit() or setSize() that resets them. I don't know enough about designMode to be sure. I hope this info helps.