Select text by index. #4943
Unanswered
alirizaadiyahsi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Ace editor in angular app. I want to select word by index.
I am using
findAll
to find all matching words. And finding all ranges, and selecting range by index. if I use first range, all words are highlighting, but if I use other indexes it is working as expecting.Here is my code:
if
this.searchOptions.selectedNodeIndex = 0
and editor looks like following:if
this.searchOptions.selectedNodeIndex = 1
and editor looks like following:if
this.searchOptions.selectedNodeIndex = 2
and editor looks like following:This issue took a lot of my time. And I can't find any solution. Any suggestion would be great.
Beta Was this translation helpful? Give feedback.
All reactions