Annotations API Methods
setBlackListIds()
You can define what sort of id prefix Annotations API should not store. This method is mostly used if your page contains dynamic content that can change each time it gets rendered. For example, the MathJax
or MathQuill
content of Learnosity.
Examples
itemsApp.annotationsApp().module('texthighlight').setBlackListIds(['MathJax-']);
Arguments
-
ids string
The prefix that changes each time it gets rendered. For example, the
MathJax
orMathQuill
content of Learnosity.
Note If you supply an ID like "foo" here, all IDs with 'foo' as a prefix (like 'football', 'foolish', etc.) become unhighlightable, too.
Return value
None (undefined
).