diff --git a/.gitignore b/.gitignore index 5cd8e477..79a957a0 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,7 @@ settings.json yarn.lock .parcel-cache parcel-dist +examples/epubs_ +examples/epubs__ +examples/epubs___ +examples/epubs____ diff --git a/package-lock.json b/package-lock.json index 4b017401..e373ab6c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@d-i-t-a/reader", - "version": "2.1.8", + "version": "2.1.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@d-i-t-a/reader", - "version": "2.1.8", + "version": "2.1.9", "license": "Apache-2.0", "dependencies": { "@types/sass": "^1.43.1", diff --git a/package.json b/package.json index d228816c..de6f2b72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@d-i-t-a/reader", - "version": "2.1.8", + "version": "2.1.9", "description": "A viewer application for EPUB files.", "repository": "https://github.com/d-i-t-a/R2D2BC", "license": "Apache-2.0", diff --git a/src/modules/highlight/TextHighlighter.ts b/src/modules/highlight/TextHighlighter.ts index a422b413..299000a5 100644 --- a/src/modules/highlight/TextHighlighter.ts +++ b/src/modules/highlight/TextHighlighter.ts @@ -3248,22 +3248,6 @@ export class TextHighlighter { if (highlightIcon) { highlightIcon.style.display = "none"; } - function noteH() { - // notes adding by clicking on gutter icon - self.delegate.annotationModule?.api - ?.addCommentToAnnotation(anno) - .then((result) => { - self.delegate.annotationModule - ?.updateAnnotation(result) - .then(async () => { - log.log("update highlight " + result.id); - toolbox!!.style.display = "none"; - self.selectionMenuClosed(); - }); - toolbox!!.style.display = "none"; - self.selectionMenuClosed(); - }); - } let commentIcon = document.getElementById("commentIcon"); let cloneCommentIcon = document.getElementById("cloneCommentIcon"); @@ -3275,14 +3259,6 @@ export class TextHighlighter { } if (commentIcon) { commentIcon.style.display = "none"; - let clone = commentIcon.cloneNode(true) as HTMLButtonElement; - let parent = commentIcon.parentElement; - clone.style.display = "unset"; - clone.id = "cloneCommentIcon"; - clone.addEventListener("click", noteH, false); - if (parent) { - parent.append(clone); - } } function deleteH() {