SyntaxEditor: How to replace text, within the selection?

1 Answer 98 Views
SyntaxEditor
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Troy asked on 12 Mar 2023, 04:40 AM

Basically what the title says.  I've selected part of a document, and I want to replace only part of the text, within that selection.  Is this possible?  I've been trying various things, but so far, no luck.

In short, I've added commenting to my text.  That works fine, but I can't uncomment (remove the comment characters) from the selected text.

1 Answer, 1 is accepted

Sort by
0
Accepted
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
answered on 12 Mar 2023, 06:22 PM
I've worked around this by dropping the selected text into a variable, modifying that variable and replacing the selected text with the variable content.  This works, and isn't a problem. I just expected to be able to edit the text directly (and I still think its a good idea to make it work that way).
Dinko | Tech Support Engineer
Telerik team
commented on 13 Mar 2023, 10:18 AM

I am happy to hear that you have found a solution for your case. You have a point that this functionality will be a good improvement to the RadSyntaxEditor. Such a request is already logged in our Feedback Portal. You can vote for its implementation and follow the item so that you can be notified of its status change.
Tags
SyntaxEditor
Asked by
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Share this question
or