attachments WIP

This commit is contained in:
zadam
2023-05-29 00:19:54 +02:00
parent c2f70031d0
commit 0aa119af2c
37 changed files with 448 additions and 320 deletions

View File

@@ -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
};