OptionalinitialRoot: ElementNodebuildRoot builds the root of this tree with the given initial root
which set by the user.
edit edits this tree with the given nodes.
Optionalcontent: TreeNodeeditBulk edits this tree with the given nodes.
getID returns the ID of this tree.
getIndexTree returns the index tree of this tree.
getNodeSize returns the node size of this tree.
getRootTreeNode returns TreeNode of this tree.
getSize returns the size of this tree.
indexRangeToPosRange converts the index range into the position range.
indexToPath returns the path of the given index.
initialize initialize this tree with context and internal tree.
mergeByPath merges the tree by the given path.
pathRangeToPosRange converts the path range into the position range.
pathToIndex returns the index of given path.
posRangeToIndexRange converts the position range into the index range.
posRangeToPathRange converts the position range into the path range.
removeStyle removes the attributes to the elements of the given range.
splitByPath splits the tree by the given path.
style sets the attributes to the elements of the given range.
styleByPath sets the attributes to the elements of the given path.
toJSForTest returns value with meta data for testing.
toJSInfoForTest returns detailed TreeNode information for use in Devtools.
toJSON returns the JSON string of this tree.
toXML returns the XML string of this tree.
Treeis a CRDT-based tree structure that is used to represent the document tree of text-based editor such as ProseMirror.