https://github.com/ideaconsult/anno-tip
Annotation library for the web
https://github.com/ideaconsult/anno-tip
annotation annotator tippy tippyjs web
Last synced: 2 months ago
JSON representation
Annotation library for the web
- Host: GitHub
- URL: https://github.com/ideaconsult/anno-tip
- Owner: ideaconsult
- License: mit
- Created: 2020-04-27T08:11:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T04:48:20.000Z (about 3 years ago)
- Last Synced: 2025-10-03T22:07:43.151Z (6 months ago)
- Topics: annotation, annotator, tippy, tippyjs, web
- Language: JavaScript
- Homepage:
- Size: 2.56 MB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AnnoTip - easy, flexible and fun annotation library for the web
## Usage
```js
var annoTip = new AnnoTip({
onSelection: function (anno) {
// anno.content = anno.selection.toUpperCase();
},
onAction: function (action, anno) {
console.log("AnnoTip: onAction: " + action);
if (action === 'edit') {
// anno.content = anno.selection.toUpperCase();
this.update(anno).getFrame().addClass('openned');
}
else
this.discard();
},
onClose: function (anno) {
console.log("AnnoTip: onClose");
}
});
annoTip.attach(document.body);
```
Check the [example/test page](tests/dev.html).
Here is the [API](./API.md) for more detailed explanation of all settings.
## Credits
[Marker Pen icon](https://icons8.com/icons/set/marker-pen) by [Icons8](https://icons8.com)
[No Edit icon](https://icons8.com/icons/set/no-edit) by [Icons8](https://icons8.com)
[Task Completed icon](https://icons8.com/icons/set/task-completed) by [Icons8](https://icons8.com)
[Annotator project](http://annotatorjs.org) for the test page.
---