Unanswered: Get the text selection of a Ext GWT HTML Editor text area
I am trying to get the selected text within a HTML Editor to a String.
I have tried this but couldn't figure out how to get the selected text from the html editor.
What I have is (Underlined text is the selected text):
HTMLEditor editor = new HTMLEditor();
editor.setValue("Test phrase for selection Test);
What I want is:
String selection = editor.getSelection();
// selection should be = hrase fo
Anyone can help?
Thanks in advance
jonas sabu ,
First of all, text in HTML Editor is not normal text in any text area. It is a formatted text that has got div, b, i tags etc.