ProsemirrorEx.Model.NodeRange (prosemirror_ex v0.3.0)

Copy Markdown View Source

Represents a flat range of content, i.e. one that starts and ends in the same node.

Ported from ProseMirror's resolvedpos.ts (NodeRange class).

Summary

Functions

The end index of the range in the parent node.

The position at the end of the range.

The parent node that the range points into.

The position at the start of the range.

The start index of the range in the parent node.

Functions

end_index(node_range)

The end index of the range in the parent node.

end_pos(node_range)

The position at the end of the range.

parent(node_range)

The parent node that the range points into.

start(node_range)

The position at the start of the range.

start_index(node_range)

The start index of the range in the parent node.