(common-ancestor first-node second-node)
Returns the common ancestor of the given nodes.
Returns the common ancestor of the given nodes.
(get-cursor-position element full-selection?)
Returns the cursor position.
Returns the cursor position.
(get-parent node class-name)
Returns the nearest parent with the given class name.
Returns the nearest parent with the given class name.
(get-parents node class-name)
Returns all the parents with the given class name.
Returns all the parents with the given class name.
(get-selection element full-selection?)
Returns the objects related to selection for the given element. If full-selection? is true, it will use rangy instead of the native selection API in order to get the beginning and ending of the selection (it is, however, much slower).
Returns the objects related to selection for the given element. If full-selection? is true, it will use rangy instead of the native selection API in order to get the beginning and ending of the selection (it is, however, much slower).
(set-cursor-position! element position)
Moves the cursor to the specified position.
Moves the cursor to the specified position.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close