We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
set_html()
Original issue CrossCopy/tauri-plugin-clipboard#28
let ctx = ClipboardContext::new().unwrap(); ctx.set_html("<h1>hello</h1>".to_string()).unwrap(); let txt = ctx.get_text().unwrap(); println!("txt: {:?}", txt); let html = ctx.get_html().unwrap(); println!("html: {:?}", html);
Output:
txt: "" html: "<h1>hello</h1>"
get_text() should return some text after set_html().
get_text()
If I run both set_text() and set_html(), the later command will overwrite the first.
set_text()
0.1.6
Mac 14.4.1 + Win11
No response
The text was updated successfully, but these errors were encountered:
Solved with .set()
.set()
ctx.set(vec![ ClipboardContent::Text("hello".to_string()), ClipboardContent::Html("<h1>hello</h1>".to_string()), ])
Sorry, something went wrong.
No branches or pull requests
The problem | 问题描述
Original issue CrossCopy/tauri-plugin-clipboard#28
Output:
Expected Behaviour
get_text()
should return some text afterset_html()
.If I run both
set_text()
andset_html()
, the later command will overwrite the first.Release version | 版本
0.1.6
Operating system | 操作系统
Mac 14.4.1 + Win11
Logs | 日志
No response
The text was updated successfully, but these errors were encountered: