Socket
Socket
Sign inDemoInstall

@ideaconsult/anno-tip

Package Overview
Dependencies
12
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ideaconsult/anno-tip

Lightweight web annotation library built on top of Tippy.js


Version published
Weekly downloads
2
Maintainers
4
Created
Weekly downloads
 

Readme

Source

AnnoTip - easy, flexible and fun annotation library for the web

Usage

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.

Here is the API for more detailed explanation of all settings.

Credits

Marker Pen icon by Icons8

No Edit icon by Icons8

Task Completed icon by Icons8

Annotator project for the test page.


Keywords

FAQs

Last updated on 02 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc