true
if prev
and next
are both decorated; false
otherwise.
Determines what should be used as the "container" for caret movement purposes. The "container" is the element within which caret movements are constrained. (The caret cannot move out of it.)
The root element of the document being edited by wed.
A container that can be used by the caret movement functions.
Find the first node in a set of nodes which is such that the reference node precedes it.
The nodes to search.
The reference node.
The first node in haystack
which does not precede ref
.
Determine whether a position is within the editable content of an element or outside of it. Modes often decorate elements by adding decorations before and after the content of the element. These are not editable, and should be skipped by caret movement.
The element in which the caret is appearing.
The offset into the element at which the caret is positioned.
The mode tree from which to get a mode.
true
if we are inside editable content, false
otherwise.
The position form which we start.
The root of the DOM tree within which we move.
Whether we are to move after the placeholder (true
) or not
(false
).
If called with a position inside a placeholder, return a position outside of the placeholder. Otherwise, return the position unchanged.
Compute the position under a starting position. This function takes into account wed-specific needs. For instance, it knows how start and end labels are structured.
The position at which we start.
The element within which caret movement is to be constrained.
The mode tree from which to get a mode.
The new position, or undefined
if there is no such position.
Compute the position to the left of a starting position. This function takes into account wed-specific needs. For instance, it knows how start and end labels are structured.
The position at which we start.
The element within which caret movement is to be constrained.
The mode tree from which to get a mode.
The new position, or undefined
if there is no such position.
Compute the position to the right of a starting position. This function takes into account wed-specific needs. For instance, it knows how start and end labels are structured.
The position at which we start.
The element within which caret movement is to be constrained.
The mode tree from which to get a mode.
The new position, or undefined
if there is no such position.
Compute the position above a starting position. This function takes into account wed-specific needs. For instance, it knows how start and end labels are structured.
The position at which we start.
The element within which caret movement is to be constrained.
The mode tree from which to get a mode.
The new position, or undefined
if there is no such position.
Generated using TypeDoc