createRangeForTest returns pair of RGATreeSplitNodePos of the given indexes
for testing purpose.
Unlike CRDTText.createRange, it does not reject an index inside a
surrogate pair.
delete deletes the text in the given range.
edit edits this text with the given content.
An index inside a UTF-16 surrogate pair throws ErrInvalidArgument, and
so does content holding a lone half of one.
Optionalattributes: Aempty makes the text empty.
getID returns the ID of this text.
getTreeByID returns IDTree of the text for testing purpose.
getTreeByIndex returns IndexTree of the text for testing purpose.
indexRangeToPosRange returns TextRangeStruct of the given index range.
initialize initialize this text with context and internal text.
posRangeToIndexRange returns indexes of the given TextRangeStruct.
setStyle styles this text with the given attributes.
An index inside a UTF-16 surrogate pair throws ErrInvalidArgument.
toJSForTest returns value with meta data for testing.
toJSON returns the JSON string of this tree.
toString returns the string representation of this text.
toTestString returns a String containing the meta data of the node
for debugging purpose.
values returns values of this text.
Textis an extended data type for the contents of a text editor.