I'm implementing a mail for using RadEditor.
I need to be able to switch between Html and Plain Text.
I have a control on the page to do the switch, but I'm struggling with the code to actually update what the user sees in the editor.
Specifically, I'm trying to implement Outlook-like functionality so that, if they select Plain Text, all the formating is removed from any existing content and the font is switched to a non-proportional one.
I'm calling this when the format selection changes ...
and whilst this changes the selected font, it doesn't change any existing text.
Is there a way for me to select all of the content before calling the .fire method?
--
Stuart
I need to be able to switch between Html and Plain Text.
I have a control on the page to do the switch, but I'm struggling with the code to actually update what the user sees in the editor.
Specifically, I'm trying to implement Outlook-like functionality so that, if they select Plain Text, all the formating is removed from any existing content and the font is switched to a non-proportional one.
I'm calling this when the format selection changes ...
setTimeout(
function
()
{
sender.fire(
'FontName'
, { value:
'Courier New'
});
}, 300);
Is there a way for me to select all of the content before calling the .fire method?
--
Stuart