mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-31 02:05:33 +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 }; | 
