4

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

6

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

>$display.getView().properties.activeEditor.getSelectedHTMLElement().toString()

will return the text.

Your Answer

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

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