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

6

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

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

will return the text.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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