You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to MDN https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/write, when using the write API, you can specify a MIME type. This allows you to copy HTML content, so when users paste it into supported editors like Google Docs, the formatted text will be displayed.
Suggested solution
For the copy returned by useClipboard, provide a second options parameter as { mime?: string }, and use it like this:
Clear and concise description of the problem
According to MDN https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/write, when using the write API, you can specify a MIME type. This allows you to copy HTML content, so when users paste it into supported editors like Google Docs, the formatted text will be displayed.
Suggested solution
For the copy returned by useClipboard, provide a second options parameter as
{ mime?: string }
, and use it like this:Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: