You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
I have a use case where a user clicks a button to insert text at the current cursor position.
But after the text is inserted using session.insert(cursorPosition, textToAdd), the position of cursor moves to the very first character.
I tried placing the cursor after the recently added text by using the following approach but it didn't work.
Basically, if a user keeps clicking the button, text to should be added at the current cursor position and then after the recently added text unless user places the cursor somewhere else explicitly.
I have a use case where a user clicks a button to insert text at the current cursor position.
But after the text is inserted using
session.insert(cursorPosition, textToAdd)
, the position of cursor moves to the very first character.I tried placing the cursor after the recently added text by using the following approach but it didn't work.
Any idea how to achieve this?
Basically, if a user keeps clicking the button, text to should be added at the current cursor position and then after the recently added text unless user places the cursor somewhere else explicitly.
Here's the JS Fiddle for the reference - https://jsfiddle.net/ashitvora/q27ebeeq/34/
The text was updated successfully, but these errors were encountered: