mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	attachments WIP
This commit is contained in:
		@@ -513,6 +513,15 @@ function areObjectsEqual () {
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function copyHtmlToClipboard(content) {
 | 
			
		||||
    const clipboardItem = new ClipboardItem({
 | 
			
		||||
        'text/html': new Blob([content], {type: 'text/html'}),
 | 
			
		||||
        'text/plain': new Blob([content], {type: 'text/plain'})
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    navigator.clipboard.write([clipboardItem]);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
    reloadFrontendApp,
 | 
			
		||||
    parseDate,
 | 
			
		||||
@@ -558,5 +567,6 @@ export default {
 | 
			
		||||
    isValidAttributeName,
 | 
			
		||||
    sleep,
 | 
			
		||||
    escapeRegExp,
 | 
			
		||||
    areObjectsEqual
 | 
			
		||||
    areObjectsEqual,
 | 
			
		||||
    copyHtmlToClipboard
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user