Chocolat API
insertTextAtLocation
.insertTextAtLocation(location, newText, recordUndo)
Insert text at specified location, optionally recording the operation for undo.
- location: Number – the location at which to insert the new text.
- newText: String – the text to insert at `location`.
- recordUndo: Bool – whether or not to record the operation for undo (Default is true).