[annotator-dev] How do I change an annotations colour?
randall at bleeds.info
Fri Jun 3 04:18:34 UTC 2016
Trivial or not depends on your goals.
Presently, there is not a way to specify an inline style, though it could
Annotator uses its own, external stylesheet.
Whether the stylesheet or an inline style is appropriate depends on the
Being able to set a custom class on a particular highlight span would also
be an acceptable enhancement to enable more granular styling.
If your need is simply to change the color of all highlights, you can
modify the CSS to change the ".annotator-hl" class styles, or leverage the
manner in which stylesheets augment and override to provide different
styles for that class in your own, external or embedded stylesheet.
On Thu, Jun 2, 2016, 07:30 Walker, Bernard <Bernard.Walker at lsec.dnd.ca>
> I am currently using Annotator 2.x, and I’m trying to change the colour of
> an annotation. The only listing of the annotation format I can find is for
> the 1.2 version (
> http://docs.annotatorjs.org/en/v1.2.x/annotation-format.html). Nowhere
> in that format do I see a way to specify the colour. Annotorious has a
> style field; does the 2.X version of Annotator have something similar?
> One would assume this would be trivial?
> Bernard Walker, MSc.
> Land Software Engineering Centre (LSEC)
> Senior System Software Analyst - ICE
> Phone 613-995-5627
> Cha toir a’bhòidhchead goil air a’ phoit.
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the annotator-dev