Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8292865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:37:39+00:00 2026-06-08T13:37:39+00:00

I am using jquery annotator to annotate and take notes on a site. I

  • 0

I am using jquery annotator to annotate and take notes on a site. I have the need to add additional style if the user has added a note.

I am trying to create a small plugin that will add a class to the highlight if a note exists for that highlight, but I can’t seem to get access to the note from within my plugin.

Any help would be greatly appreciated!

EDIT:

Here’s my plugin so far, just a start to be able to look into the annotator object. I can’t find anything in the log of the annotator object that gives me information about the notes attached to a highlight.

Annotator.Plugin.Milestone = function(element) {
   var milestoneAnnotator = {
        pluginInit: function() {
            console.log(this.annotator);
        }
    };

    return milestoneAnnotator;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:37:41+00:00Added an answer on June 8, 2026 at 1:37 pm

    Subscribing to the annotationsLoaded event will give you access to all of your stored annotations when they are loaded in to the DOM, according to the Annotator readme.

    Now, as for adding a class to a highlight, I assume you mean a CSS class? Here’s an example of adding a CSS class to all annotations when they are loaded in to the DOM.

    To only add a class to annotations with notes, you would just check for the text property on the annotation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery validation plugin but it has no CSV validation. I have made an
Using Jquery , I have an array result [<a href=><img src=image1></a>,<a href=><img src=image2></a>] if
Using jQuery, how can I get the input element that has the caret's (cursor's)
I'm stuck trying to implement a user-configurable filter on a table using jQuery (in
I am puzzled, I have a call with jQuery using .load to fill a
Using jQuery Autocomplete, according to the docs you have to do the following to
Using jQuery UI , I have a tabs plugin and within tab 1 gets
Using jQuery, how can I: Have all checkboxes on a page turned checked on
Using jQuery, I am referencing a particular ID and then I want to add
using jQuery I have the following code: var selectedIdsArray = $(#selectId option:selected).map(function(){return this.value;}); var

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.