I am injecting some HTML into the RadEditor's content window using the pasteHtml method in JavaScript. The HTML I am pasting includes a <span> element, like this:
editor.pasteHtml(
"<span class='text-highlight'>@MyText</span>"
);
In all browsers, in Design view, after the text is pasted, the cursor appears after the span contents ("@MyText" in the example above). In Chrome, the cursor is actually positioned inside the <span> tag (which is what I want). In IE and Edge, however, the cursor position appears after the closing <span> tag.
Is there any way to get the cursor inside the <span> tag after the paste occurs? I tried using variations of the range.collapse() methods (which have major limitations in IE anyway), but it had the adverse effect of taking the focus away from the RadEditor control.