TextTransaction extension

on

Methods

addDeltaToComposeMap(Node node, Delta delta) → void
compose() → void
Compose the delta in the compose map.
deleteText(Node node, int index, int length) → void
Deletes the length characters at the given index.
formatText(Node node, int index, int length, Attributes attributes) → void
insertText(Node node, int index, String text, {Attributes? attributes, Attributes? toggledAttributes}) → void
Inserts the text at the given index.
insertTextDelta(Node node, int index, Delta insertedDelta) → void
mergeText(Node left, Node right, {int? leftOffset, int rightOffset = 0}) → void
replaceText(Node node, int index, int length, String text, {Attributes? attributes}) → void
replace the text at the given index with the text.
replaceTexts(List<Node> nodes, Selection selection, List<String> texts) → void