We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can undomanager.undo()/redo() return the stack item which may attach some user specified info for example custom caret position?
The text was updated successfully, but these errors were encountered:
Yes, you can specify a custom value and cursor information in the returned value of onPush, which will be present in the arguments of onPop.
export type UndoConfig = { mergeInterval?: number, maxUndoSteps?: number, excludeOriginPrefixes?: string[], onPush?: (isUndo: boolean, counterRange: { start: number, end: number }, event?: LoroEventBatch) => { value: Value, cursors: Cursor[] }, onPop?: (isUndo: boolean, value: { value: Value, cursors: Cursor[] }, counterRange: { start: number, end: number }) => void };
Sorry, something went wrong.
No branches or pull requests
can undomanager.undo()/redo() return the stack item which may attach some user specified info for example custom caret position?
The text was updated successfully, but these errors were encountered: