A family of Microsoft word processing software products for creating web, email, and print documents.
Sorry, I cannot help with JS.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How can we insert text or any other widget at current cursor position in ms-word from my ms-word plugin??
A family of Microsoft word processing software products for creating web, email, and print documents.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Sorry, I cannot help with JS.
I am trying to implement this feature through JS. I tried using it but each time it prints the word on the default cursor position i.e left, right or center and moves to new line. If i have to do something like below:
Hello {{insert text at this position}}
It doesnot happen. Text is inserted in new line on the left.What could be the issue.. Am I doing it wrong?
This is the code i am using
context.document
.getSelection()
.insertParagraph("{{"
Use the command
Selection.InsertBefore