From: Ardis Lu Date: Thu, 21 Mar 2024 06:03:51 +0000 (-0700) Subject: Improve rich text paste into Word X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=6157209b7c99a721097718d6ead612be34167966;p=event-hashes Improve rich text paste into Word The vendor prefixes limit scope and enable access to native Word features like theme fonts. --- diff --git a/index.html b/index.html index 801594c..75a7bcf 100644 --- a/index.html +++ b/index.html @@ -425,7 +425,7 @@ else { const data = [new ClipboardItem({ 'text/plain': new Blob([table.innerText], { type: 'text/plain' }), - 'text/html': new Blob([`${table.outerHTML}`], { type: 'text/html' }) + 'text/html': new Blob([`${table.outerHTML}`], { type: 'text/html' }) })]; navigator.clipboard.write(data); }