Hi.
I need to load text to RadEditor from database that can be changed by user from website. The problem is that default text colour must be black, and all changes that user makes must be in red colour only. How can I achieve this? I tried to use something like
And this is incorrect to, also, it causes problems with performance in the case of long text. Could someone please help me with this issue?
I need to load text to RadEditor from database that can be changed by user from website. The problem is that default text colour must be black, and all changes that user makes must be in red colour only. How can I achieve this? I tried to use something like
function OnClientSelectionChange(editor, args) {
editor.get_document().execCommand("ForeColor", false, "Red");
}
But in this case font colour changes to red event when user select some part of the text with mouse or with keyboard, and that is totally wrong. I also tried to handle "keydown" event for the content area, but in this case each symbol is wrapped by span tag, so I get something like<
span
style
=
"font: red;"
>r<
span
style
=
"font: red;"
>e<
span
style
=
"font: red;"
>s</
span
></
span
><
span
>
And this is incorrect to, also, it causes problems with performance in the case of long text. Could someone please help me with this issue?