Hi all,
First, the problem:
I have a form which has 5 editors on it as part of our CMS. I noticed that there was a problem with it passing the data through correctly - only the first instance of the editor seemed to be submitting its changes.
Now, I did some searching on this, and found the suggestion that it may be a problem restricted to Firefox 3. So I tried it in IE7, and sure enough it worked just fine. All well and good, but still not optimal. We give this to clients, and we can't be sure what they're going to be looking at it in.
I found this support ticket which seems to suggest that the problem is fixed. I had a look at the patch, and made the appropriate changes to the api.js file as it indicated. Still no difference though.
I'm using version 2.4.3 (Build 15657). Is this likely to make a difference? Is there a different version I should be using? Or can anyone shed some light on this problem at all?
Cheers,
Seona.
Tue, 10/28/2008 - 01:34
#1
Re: Firefox 3 multiple editors problem
Hi, I had the same problem with multiple instances in Firefox and found a workaround.
IE does the initial setup work almost instantly, so it rarely will encounter the issue, except perhaps on a very slow laptop. Maybe the Gecko code of FCK needs some optimisation.
It's a "problem" with how FCKEditor creates instances asynchronously and returns control to your code before the work is actually done. So basically you call a method to create the first instance, it returns straight away, and so when you try to create more instances, they aren't accomplished correctly because the FCKEditor core code is still in the process of creating core objects (like the API of all things!).
The solution is posted here:
viewtopic.php?f=6&t=12269&p=32148&hilit=+firefox+multiple#p32155
It's simply a matter of creating the first instance, then "polling" the API object to make sure it's created and ready, before moving on to create the following instances of FCKEditor. I've posted complete working code there.
It's only a problem in Firefox because it's so SLOW.
HTH
Re: Firefox 3 multiple editors problem
Actually I just found a more elegant solution.. doh.
viewtopic.php?f=6&t=11341&p=30809&hilit=+firefox+multiple#p30809
Using the OnComplete command after the first instance, to then create the following instances.
Re: Firefox 3 multiple editors problem
Waveform, you rock.
That fixed it up beautifully. Thank you so much. Now to go and convert all my other forms to using this method...