mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 17:25:32 +00:00
12 lines
293 B
JavaScript
12 lines
293 B
JavaScript
|
|
const startup_clipboard = function () {
|
|
document.addEventListener('copy', function (e) {
|
|
var e = navigator.clipboard.read();
|
|
|
|
var text = window.getSelection().toString();
|
|
e.clipboardData.setData('text/plain', text);
|
|
e.preventDefault();
|
|
});
|
|
}
|
|
|
|
export { startup_clipboard }; |