- From: Miklos Vajna <notifications@github.com>
- Date: Thu, 18 Jan 2024 00:14:47 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 18 January 2024 08:14:54 UTC
The typical common format between applications for copy&paste on the desktop used to be RTF for a long time. Reading <https://w3c.github.io/clipboard-apis/#reading-from-clipboard>, only HTML is suggested for rich text, but many applications have either no support for HTML paste or their HTML paste support is worse then RTF paste, because it wasn't a frequent codepath in the past. I understand that exposing RTF means one more format to sanitize, but in case PNG and HTML is already sanitized, then RTF could be also allowed + sanitized. For example, with all its problems, the old document.execCommand('paste') API used to allow reading RTF, and not even after we get permission from the browser, this use-case is broken, the consuming javascript must handle HTML instead. This is a problem in larger existing web applications, like Collabora Online. Could you please consider adding RTF to the format list at "6.4.1. Reading from the clipboard"? Thanks. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/issues/210 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/issues/210@github.com>
Received on Thursday, 18 January 2024 08:14:54 UTC