Ticket #333 (closed defect: invalid)
display:none breaks Xinha in Firefox
|Reported by:||Alex||Owned by:||gogo|
|Severity:||major||Keywords:||Firefox display none|
If the Xinha editor is enclosed within a div, hiding and then displaying the div will break the editor - for example when using display: none and display:block to implement tabs.
The easy solution is not to use tabs, or not to set the display to none, but sometimes that's not an option.
1 - write a page with a Xinha editor enclosed within a DIV called showhide
2 - add some links underneath the editor:
3 - load up the page in Firefox, and press the Hide link, followed by the Show link.
In IE this'll work fine, but Firefox has trouble with it. An error is thrown by Firefox: NS_ERROR_NOT_INITIALISED.
I've made some screenshots of the error, except I can't attach them here it seems.
I think this is probably a problem with Firefox, and not Xinha, and I think the best workaround would be a re-initialise function that could be called when the div's display is set to block again.
If more information is needed, don't hesitate to contact me at alexATmetacubecms.com