How to retain text cursor (caret) to its original position even after "setContents". #1099
Answered
by
JiHong88
Prithviraj-kf
asked this question in
Q&A
-
I have a situation where I need to do some regex and update the content on onTextChange. I want the caret to stay in the same position. Please help |
Beta Was this translation helpful? Give feedback.
Answered by
JiHong88
Oct 7, 2022
Replies: 1 comment
-
You can use the core.setRange |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Prithviraj-kf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the core.setRange