We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85aeb55 commit 97d55cbCopy full SHA for 97d55cb
src/sandbox.js
@@ -60,6 +60,14 @@ function setInnerHTML(node, html) {
60
newScript.appendChild(doc.createTextNode(text));
61
prevScript.parentNode.replaceChild(newScript, prevScript);
62
}
63
+
64
+ for (let anchor of node.querySelectorAll('a')) {
65
+ anchor.addEventListener('click', (e) => {
66
+ if (!e.ctrlKey && !e.shiftKey) {
67
+ e.preventDefault();
68
+ }
69
+ });
70
71
72
73
function Sandbox() {
0 commit comments