I want to get selected text in RTF using Anguilla. I cannot get it using pure JS because it is in an iframe. There is an option to use editor.getSelectedHTMLElement() to get selected HTML element, but that is not what I want. I want to get a pure text that user selected. I cannot find anything similar in Anguilla. Is there something there that I can use?

enter image description here

1 Answer 1


Just found out in this blog that simple .toString() over


will return the text.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.