Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTF is not exposed when using navigator.clipboard.read() #210

Open
vmiklos opened this issue Jan 18, 2024 · 0 comments
Open

RTF is not exposed when using navigator.clipboard.read() #210

vmiklos opened this issue Jan 18, 2024 · 0 comments

Comments

@vmiklos
Copy link

vmiklos commented Jan 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant