Skip to content

Commit 9ce4400

Browse files
FabianLarsgezihuzi
authored andcommitted
docs(clipboard): Remove readHtml mention
1 parent 3fad754 commit 9ce4400

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

plugins/clipboard-manager/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ import {
7272
writeText,
7373
readText,
7474
writeHtml,
75-
readHtml,
7675
clear
7776
} from '@tauri-apps/plugin-clipboard-manager'
7877
await writeText('Tauri is awesome!')

plugins/clipboard-manager/guest-js/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ async function readImage(): Promise<Image> {
111111
*
112112
* @example
113113
* ```typescript
114-
* import { writeHtml, readHtml } from '@tauri-apps/plugin-clipboard-manager';
114+
* import { writeHtml } from '@tauri-apps/plugin-clipboard-manager';
115115
* 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()
117119
* assert(await readText(), '<h1>Tauri is awesome!</h1>');
118120
* ```
119121
*

0 commit comments

Comments
 (0)