-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable the Annotation #629
Comments
There is an ongoing initiative with hypothesis.js (see this post). A PR will soon be pushed by Evident Point on the Readium repo. |
In the interim, you can enable the "text highlighting" functionality (not a fully fledged annotation feature, but you can implement a more complete system based on this building block), by activating the plugin in Example usage: readium.reader.plugins.highlights.initialize({
annotationCSSUrl: readerOptions.annotationCSSUrl
});
readium.reader.plugins.highlights.on("annotationClicked", function(type, idref, cfi, id) {
console.debug("ANNOTATION CLICK: " + id);
readium.reader.plugins.highlights.removeHighlight(id);
}); https://github.com/readium/readium-js-viewer/blob/develop/src/js/EpubReader.js#L851 $(".icon-annotations").on("click", function () {
readium.reader.plugins.highlights.addSelectionHighlight(Math.floor((Math.random()*1000000)), "test-highlight");
}); |
@llemeurfr Hi, I have read the post you mentioned, looks like an exciting feature. The post says the annotation will be launched in summer 2007. Summer is passing half the way. When will it be ready to use? Thanks. |
@danielweck Can you tell me how is going with the hypothesis.js project? Thanks. |
Hi @hz0324, please follow readium/readium-shared-js#396 to get updates on this project. |
hypothesis is working, but the highlight does not work, I already enabled it in the cson package, what to do to work? |
How can I enable Annotation feature.
This issue is a Question
The text was updated successfully, but these errors were encountered: