Highlight Text Programmatically Between Two Indices

0 Answers 110 Views
Editor
Scott
Top achievements
Rank 1
Iron
Scott asked on 24 Aug 2022, 05:55 PM

I am using the kendo editor and I am wondering if there is a way to highlight the text programmatically. I know that I can use:

editor.exec("backColor", "#FFFFFF");
and this will highlight the selected text, but I want to highlight between two markers in the document automatically. Is there a way I can maybe set editor.selectionText = "text I want to highlight" or pass in some kind of index to editor.exec("backColor"). Right now I am getting around this problem by surrounding the text with a div but that creates its own problems.

No answers yet. Maybe you can help?

Tags
Editor
Asked by
Scott
Top achievements
Rank 1
Iron
Share this question
or