CrossCopy / tauri-plugin-clipboard

A Tauri clipboard plugin with text, files, html, RTF, and image support. Clipboard content update monitoring is also supported.
https://crosscopy.github.io/tauri-plugin-clipboard/
MIT License
122 stars 6 forks source link

invalid args `rtfContent` for command `write_rtf`: command write_rtf missing required key rtfContent #39

Closed ryusei-48 closed 2 weeks ago

ryusei-48 commented 2 weeks ago

Hello. This plugin is very useful. When I call the writeRtf() method in front side TypeScript and try to write RTF format data to the clipboard, the following Promise error is printed to the console.

Uncaught (in promise) invalid args `rtfContent` for command `write_rtf`: command write_rtf missing required key rtfContent

It appears that there is an error in the backend command. Is it possible to fix the bug here?

environment

TAURI v1.6.8 tauri-plugin-clipboard v1.1.0 tauri-plugin-clipboard-api v1.0.1

Thank you very much.

HuakunShen commented 2 weeks ago

Thank you for pointing this out. It's fixed. Try upgrade to v1.1.1

ryusei-48 commented 2 weeks ago

The response was fast and helpful. Thank you very much.