TinyMCE:API/tinymce.dom.Selection/getNode
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: getNode
[edit]
Summary
Returns the currently selected element or the common ancestor element for both start and end of the selection.
[edit]
Syntax
<Element> getNode()
[edit]
Returns
Currently selected element or common ancestor element.
[edit]
Examples
// Alerts the currently selected elements node name alert(tinyMCE.activeEditor.selection.getNode().nodeName);
