YUI: Editor - Invalid HTML
In response to this
YDN-Javascript Thread
Test Strong
Test Anchor
The HTML
<textarea id="editor">
Test Strong
Test Anchor
</textarea>
The Javascript
(function() { var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event; var myEditor = new YAHOO.widget.SimpleEditor('editor', { height: '300px', width: '522px', dompath: true }); myEditor.invalidHTML = { a: { keepContents: true }, input: true, strong: { keepContents: true }, b: { keepContents: true } }; myEditor.render(); })();