Download & Extend

Clicking "Switch to Plain Editor" causes form submission

Project:YUI Rich Text Editor
Version:5.x-2.6-96
Component:User interface
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active

Issue Summary

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.

Comments

#1

The code above should be

$("#"+id).after("<a href=\"#\" id=\"toggleEditor-"+id+"\">Switch to Plain Editor</a>");