I have 2 rad editors that I'm using to create emails. The idea is to have one for HTML the other for Plain Text, I've created a custom toolbar button to fetch the data from the HTML editor and insert it into the Plain Text editor. Is there a way to include the line breaks?
| <script type="text/javascript"> |
| //Get Html Content from HTML Editor to The Text Editor - button on the text editor |
| Telerik.Web.UI.Editor.CommandList["GetHtmlContent"] = function(commandName, editor, args) |
| { |
| var htmlEditor = $find("<%=HTMLEditor.ClientID%>"); //find the HTML editor |
| editor.set_html(htmlEditor.get_text()); //set the new text in Text Editor |
| }; |
| </script> |
should I be trying to get_html() then converting it to text only somehow?
Thanks!
