mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Merge pull request #1184 from Upstatement/fix-marks-example
fix marks example
This commit is contained in:
commit
f632df7cb3
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@
|
|||
// Apply a class to selected text
|
||||
rendition.on("selected", function(cfiRange, contents) {
|
||||
|
||||
var m = contents.mark(cfiRange, {'something' : true}, (e) => {
|
||||
rendition.annotations.mark(cfiRange, {'something' : true}, (e) => {
|
||||
var bounds = e.target.getBoundingClientRect();
|
||||
var clientX = e.clientX;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue