SCEditor

currentNode()

currentNode() Since: 1.4.1

Gets the current DOM node that contains the selection/caret in WYSIWYG mode.

Will return null if there is currently no selection or in source mode.

Syntax

var node = instance.currentNode();

Return

Type: Node