Ticket #493 (closed Bug: fixed)
Submit button issue - naming conflict
| Reported by: | miketonks | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.4.3 |
| Component: | General | Version: | FCKeditor 2.4.2 |
| Keywords: | Confirmed | Cc: |
Description
I just spent a good few hours over a problem with the Save button on the toolbar not working.
I eventually tracked down the problem, so I thought I'd post this in case it's of any help or even worth considering a change to the code to get around it.
The problem is with the html code for my submit button:
1) <input type="submit" value="Save" /> - toolbar save button works
2) <input type="submit" name="submit" value="Save" /> - toolbar save button does not work
3) <input type="submit" name="submit2" value="Save" /> - toolbar save button works
So the bug (2) is some sort of conflict over the name "submit". The javascript error is:
Error: A.submit is not a function Source File: http://phpmap-local/php/fckeditor/editor/js/fckeditorcode_gecko.js Line: 66
Browser: Firefox 1.5 linux
My suggestion would be to name whatever it is in the code fck_submit or something to make name conflicts less likely - naming my submit button 'submit' is not that unlikely.