Insert text in Rich text editor at a Cursor point on click of a button.
Hello Everyone,
I have a value in the clipboard, and I want to insert that in the Rich text editor where the cursor is placed at the exact position.
Requirement:
1. After entering a text in a Rich Text/ Text area, user can place the cursor anywhere in between words.
2. User selects a value from a drop down
3. The drop down value should be inserted at the cursor position.
Example:
User entered Text: Hello, Welcome to Pega Academy?
Cursor position is after Hello -> Hello <cursor>, Welcome to Pega Academy?
User selects the drop down with username -> Ajith
User entered Text should be updated as: Hello Ajith, Welcome to Pega Academy?
Can anyone help on this or provide any reference to it and quick help is highly appreciated.
Thanks