Within my editor, I have the ability to choose text and show it using the code below:
alert(tinyMCE.activeEditor.selection.getContent({format : "html"}));
The problem is that this function only returns text and not HtmlElement. This means I am unable to view the node that encloses the selected text. I am looking for a way to obtain the content as an HtmlElement in order to work with nodes.
Do you have any suggestions?