-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
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
How to call the ok button from a widget? #66
Comments
I re-read the code and, no, unfortunately that's also not possible - at least not without loosing annotation bodies like in issue #65. Frankly, the current React implementation of the editor solves as many problems as it causes. I need to re-organize that bit somewhat to provide more possibilites for widget extensions. However: I'm on the case. Expect updates for this and #65 soon! |
For posterity (this will go into the docs later!): all widget callback functions now have an optional additional argument args.onAppendBody(body, true);
args.onRemoveBody(body, true);
args.onUpdateBody(previousBody, updatedBody, true);
args.onUpsertBody(optPrevious, updatedBody, true);
args.onBatchModify(diffs, true); |
Is there a way to add an annotation / click the "OK" button programmatically from inside a Widget?
Something like this?
https://recogito.github.io/annotorious/api-docs/annotorious/#saveselected
The text was updated successfully, but these errors were encountered: