Json Tree
JsonTree is a CRDT-based tree structure that is used to represent the document tree of text-based editor such as ProseMirror.
Functions
Edits this tree with the given node.
Edits this tree with the given node and path.
Converts the index range into the TreePosStructRange.
Returns the path of the given index.
Merges the element node at the given path into its left sibling.
Converts the path range into the TreePosStructRange.
Returns the index of given path.
Converts the position range into the index range.
Converts the position range into the path range.
Removes the attributes in attributesToRemove from the elements in the given index range.
Removes the attributes in attributesToRemove from the elements in the path range between fromPath and toPath.
Splits the tree at the given path.
Sets the attributes to the element at the given path.
Sets the attributes to the elements in the path range between fromPath and toPath.