Register in order to access new features like "Job Alert" and "Buyer Alert"

Login

Login
No account yet? Register

Latest Articles

Auction Factory Banner
Freelancer Jobs arrow Joomla arrow Nasty TinyMCE error
Dec 17 Nasty TinyMCE error PDF

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

Comments
Add New Search
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 
< Prev   Next >