docs(clipboard): Remove readHtml mention

pull/1919/head^2
FabianLars 6 months ago
parent 6fcb2f5f40
commit eb94dda28a
No known key found for this signature in database

@ -72,7 +72,6 @@ import {
writeText, writeText,
readText, readText,
writeHtml, writeHtml,
readHtml,
clear clear
} from '@tauri-apps/plugin-clipboard-manager' } from '@tauri-apps/plugin-clipboard-manager'
await writeText('Tauri is awesome!') await writeText('Tauri is awesome!')

@ -111,9 +111,11 @@ async function readImage(): Promise<Image> {
* *
* @example * @example
* ```typescript * ```typescript
* import { writeHtml, readHtml } from '@tauri-apps/plugin-clipboard-manager'; * import { writeHtml } from '@tauri-apps/plugin-clipboard-manager';
* await writeHtml('<h1>Tauri is awesome!</h1>', 'plaintext'); * await writeHtml('<h1>Tauri is awesome!</h1>', 'plaintext');
* await writeHtml('<h1>Tauri is awesome!</h1>', '<h1>Tauri is awesome</h1>'); // Will write "<h1>Tauri is awesome</h1>" as plain text * // The following will write "<h1>Tauri is awesome</h1>" as plain text
* await writeHtml('<h1>Tauri is awesome!</h1>', '<h1>Tauri is awesome</h1>');
* // we can read html data only as a string so there's just readText(), no readHtml()
* assert(await readText(), '<h1>Tauri is awesome!</h1>'); * assert(await readText(), '<h1>Tauri is awesome!</h1>');
* ``` * ```
* *

Loading…
Cancel
Save