import { Text } from "https://deno.land/x/automerge@2.2.2/stable.ts";
Methods
Deletes numDelete
list items starting at position index
.
if numDelete
is not given, one item is deleted.
Inserts new list items values
starting at position index
.
Updates the list item at position index
to a new value value
.
Returns the content of the Text object as a simple string, so that the JSON serialization of an Automerge document represents text nicely.
Returns the content of the Text object as a sequence of strings, interleaved with non-character elements.
For example, the value ['a', 'b', {x: 3}, 'c', 'd']
has spans:
=> ['ab', {x: 3}, 'cd']
Returns the content of the Text object as a simple string, ignoring any non-character elements.
Iterates over the text elements character by character, including any inline objects.