Hi,
I have a requirement to build an email template designer, where the user will build a template base on a table so the system can automate sending the emails and it will replace with record value, the idea of it, the user will type the email and where it will require to add value, he has a list of fields and he can click, I'm doing
emailTemplateBox.executeCommand("insertText", `{{${id}}}`
to insert text but the problem is sometimes for some reason the cursor is set back to the beginning so that the text will be inserted in the wrong location, check the attached video for more details
Attachment: RichTextEditor_Issue_b9a9d892.rar