#2519: Firefox 3 form submit via javascript with multiple editor instances -
-------------------------------------------------------+--------------------
Reporter: ccarey | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: General | Version:
FCKeditor 2.6.3
Keywords: Firefox 3, multiple instance, form submit |
-------------------------------------------------------+--------------------
'''Summary:'''
[[BR]][[BR]]
If you create a form which contains multiple instances of the FCK Editor,
Firefox3 will only send updates to one of the instances if you submit the
form via javascript (form.submit()). Submitting the same form via a
"native" submit button (input type="submit") will send the form as
expected.
[[BR]][[BR]]
See sample form attached (modified sample file as detailed below)
[[BR]][[BR]]
'''Steps to replicate:'''
[[BR]][[BR]]
1. Open the sample09.html bundled with the editor
fckeditor/_samples/html/sample09.html
[[BR]][[BR]]
2. Edit the sample code to add a second button at the bottom which submits
the form via javascript
{{{
<input type="submit" value="Submit (button)" />
<input type="button" value="Submit (javascript)"
onclick="document.testform.submit()"/>
}}}
3. Run the sample in firefox 3.0.1
[[BR]][[BR]]
4. Edit the values in both editor regions to "XX" and submit the form
using "native" submit button. Notice that the receiving page shows the
correct data ("XX").
[[BR]][[BR]]
5. run the sample again and change the field values to "YY" and submit the
form using the javascript button. Notice that the receiving page shows
only one of the regions updated (i.e. the first region shows "YY" and the
other shows the default value)
[[BR]]
[[BR]]
'''Notes'''
[[BR]]
- tested in version 2.6.3 and nightly build (2008-09-02)[[BR]]
- behaviour not present in IE7 or FF2.x[[BR]]
- Inspecting the hidden "value" field at the point where the form is
submitted (FF3) shows the value only being updated for one instance of the
editor at a time.
[[BR]][[BR]]
It's a bit of an issue if you're using external validation (like qForms)
or if the page design requires that the activation buttons for the form
are outside the form boundaries.
--
Ticket URL: <http://dev.fckeditor.net/ticket/2519>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac