mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
docs(clipboard): Remove readHtml mention
This commit is contained in:
@@ -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>');
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user