TagSpaces is an offline, open source, document manager with tagging support
disabling all links in html content
uggrockd65ebbbefa94
diff --git a/data/ext/viewerMD/main.js b/data/ext/viewerMD/main.jsindex ecf263737..aa1de96e6 100644--- a/data/ext/viewerMD/main.js+++ b/data/ext/viewerMD/main.js@@ -76,12 +76,6 @@ $(document).ready(function() {saveExtSettings();});- //TODO making all links open in the user default browser- $htmlContent.find("a").bind('click', function(e) {- e.preventDefault();- //TSCORE.openLinkExternally($(this).attr("href"));- });-$("#printButton").on("click", function() {$(".dropdown-menu").dropdown('toggle');window.print();@@ -132,4 +126,10 @@ function setContent(content, fileDirectory) {$(this).attr("src", path);}});++ $("#htmlContent").find("a").bind('click', function(e) {+ e.preventDefault();+ //TODO making all links open in the user default browser+ //message to parent openLinkExternally($(this).attr("href"));+ });}