Hello,
I cannot use the FCK editor to insert flash. When I do..everything seems to insert fine however it completely freezes joomla to the point I have to close it and re-login. I am trying to insert flash in a module position via the editor's insert flash button.
Using Firefox, in the bottom right corner it states there are errors (I believe this is a firebug feature??) The error is:
FCKTempBin.Elements[i].toLowerCase is not a function.
Revert("<embed width="240" height="180" type="application/x-shockwave-flash" pluginspage="http://www.macrome...", undefined)fckconfigjoomla.j... (line 112)
AttachToOnSelectionChange(true)fckeditorcode_gec... (line 31)
AttachToOnSelectionChange()fckeditorcode_gec... (line 31)
submitform("apply")joomla.javascript... (line 328)
submitbutton("apply")index.php (line 174)
onclick(click clientX=0, clientY=0)index.php (line 1)
[Break on this error] if (FCKTempBin.Elements[i].toLowerCase() == '<hr id="system-readmore" />')
I then have to close the browser window.
Is there a fix for this?
Thank you,
Mark
Fri, 03/07/2008 - 10:14
#1
Re: Inserting flash in editor freezes joomla!
I just have resolved the same issue.
It's not as simple as it ight be, but I'll try to explain how to work it out.
First of all, decompress the zip that contains all files. There, in the first level "/" you'll find a file called "fckconfigjoomla.js". In line 73 you've got to replace
FCKConfig.ProtectedSource.Add( /<HR ID=.*\/>/i );
for
FCKConfig.ProtectedSource.Add( /<hr id="system-readmore" \/>/gi );
and in line 112
you 've got to replace
if (FCKTempBin.Elements[i].toLowerCase() == '<hr id="system-readmore" />')
for
if (typeof(FCKTempBin.Elements[i]) == 'string' && FCKTempBin.Elements[i].toLowerCase() == '<hr id="system-readmore" />')
Create a new zip with the whole package, uninstall, upload and install it again to your Joomla! installation.
That's it!
= )
C U.