TinyMCE:API/tinymce.dom.Selection/getNode

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: getNode

Summary

Returns the currently selected element or the common ancestor element for both start and end of the selection.

Syntax

<Element> getNode()

Returns

Currently selected element or common ancestor element.

Examples

// Alerts the currently selected elements node name
alert(tinyMCE.activeEditor.selection.getNode().nodeName);
Personal tools