mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 09:15:33 +00:00
Zwischenablage 1. Experiment
This commit is contained in:
7
HaWeb/wwwroot/js/clipboard.js
Normal file
7
HaWeb/wwwroot/js/clipboard.js
Normal file
@@ -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();
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user