File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
plugins/clipboard-manager Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ import {
72
72
writeText ,
73
73
readText ,
74
74
writeHtml ,
75
- readHtml ,
76
75
clear
77
76
} from ' @tauri-apps/plugin-clipboard-manager'
78
77
await writeText (' Tauri is awesome!' )
Original file line number Diff line number Diff line change @@ -111,9 +111,11 @@ async function readImage(): Promise<Image> {
111
111
*
112
112
* @example
113
113
* ```typescript
114
- * import { writeHtml, readHtml } from '@tauri-apps/plugin-clipboard-manager';
114
+ * import { writeHtml } from '@tauri-apps/plugin-clipboard-manager';
115
115
* await writeHtml('<h1>Tauri is awesome!</h1>', 'plaintext');
116
- * await writeHtml('<h1>Tauri is awesome!</h1>', '<h1>Tauri is awesome</h1>'); // Will write "<h1>Tauri is awesome</h1>" as plain text
116
+ * // The following will write "<h1>Tauri is awesome</h1>" as plain text
117
+ * await writeHtml('<h1>Tauri is awesome!</h1>', '<h1>Tauri is awesome</h1>');
118
+ * // we can read html data only as a string so there's just readText(), no readHtml()
117
119
* assert(await readText(), '<h1>Tauri is awesome!</h1>');
118
120
* ```
119
121
*
You can’t perform that action at this time.
0 commit comments