The "delete" operation deletes a number of characters starting from the cursor's current position in the document.
A delta represents a change performed on a document as a sequence of operations that move a cursor over the document.
A delta represents a change performed on a document as a sequence of operations that move a cursor over the document.
the list of operations in order. An operation can be any one of:
The "insert" operation inserts a given string at the cursor's current position in the string.
The "retain" operation moves the cursor along the document by a number of characters, effectively "skipping" over them.
The "retain" operation moves the cursor along the document by a number of characters, effectively "skipping" over them.
the number of characters to skip or retain.
The "delete" operation deletes a number of characters starting from the cursor's current position in the document.
the number of characters to delete.