You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys,
is there any way, how to call any functions right after using some methods in storage plug in?
I would like to show the people some notice div, that their annotation has been succesfully saved, which means to call function right after ajax request has finished.
The same for deleting.
It would be also nice to have possbility to modify the plug in. For example if the annotation has empty text I would like to add current date, when it was created instead of just "no comment" placeholder.
Any suggestions? The documentation is not so good. There are just descriptions about how to storage, but nothing else.
The text was updated successfully, but these errors were encountered:
I found, that there is possible to use .subscribe() method to catch major events of the annotator plug in.
it is fine! So, now I understand, that I can use some functions on triggers of some major evets, but only one is missing to me - when I select the text, there is no event on "range" select. However the plug in has to know about this event, because it shows "annotator-adder" button. I found, that inside the plugin, there is method this.publish('nameofevent',options) and this creates the triggers, but for "text select" event there is no such a trigger. Maybe it will be added in the future version.
Hello guys,
is there any way, how to call any functions right after using some methods in storage plug in?
I would like to show the people some notice div, that their annotation has been succesfully saved, which means to call function right after ajax request has finished.
The same for deleting.
It would be also nice to have possbility to modify the plug in. For example if the annotation has empty text I would like to add current date, when it was created instead of just "no comment" placeholder.
Any suggestions? The documentation is not so good. There are just descriptions about how to storage, but nothing else.
The text was updated successfully, but these errors were encountered: