diff --git a/HaWeb/wwwroot/js/clipboard.js b/HaWeb/wwwroot/js/clipboard.js new file mode 100644 index 0000000..9a2f7df --- /dev/null +++ b/HaWeb/wwwroot/js/clipboard.js @@ -0,0 +1,7 @@ +document.addEventListener('copy', function(e){ + var e = navigator.clipboard.read(); + + var text = window.getSelection().toString(); + e.clipboardData.setData('text/plain', text); + e.preventDefault(); + }); \ No newline at end of file