Clicking "Switch to Plain Editor" causes form submission
ablondeau - October 5, 2009 - 21:48
| Project: | YUI Rich Text Editor |
| Version: | 5.x-2.6-96 |
| Component: | User interface |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
This only happens on IE8. My workaround was to change line 69 of yui_editor.js to use a link instead of a button:
$("#"+id).after("Switch to Plain Editor");
The stylesheet makes the link still look like a button, so all was good after that.

#1
The code above should be
$("#"+id).after("<a href=\"#\" id=\"toggleEditor-"+id+"\">Switch to Plain Editor</a>");