|
There is a nasty tinyMCE error in Firefox that made my life a living hell.
first it was hard to track when it happed. Mostly when using tinyMCE in tabbed displays. I thought the two Javascript libraries did not "support" each other. or maybe some weird variable they use together.
the error was visible in firebug (or error console):
uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsISelection.getRangeAt]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://xxx/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js :: anonymous :: line 6465" data: no]
Then it happened also in a script that made the editor invisible and then back visible.
and it dawed me .. TinyMCE has some unexplained problem on submit when turning visible. you have to click on it first (give him focus), then it's ok.
So i added in submitbutton (admin side - joomla programmers know what i mean):
if (tinyMCE) tinyMCE.execCommand('mceFocus', false,'mailbody');
as the first line. and all was fine...
Hope it helps others too
|