Skip to content

Commit c9eef80

Browse files
wip
1 parent 7a2847a commit c9eef80

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ Alpine.plugin(Clipboard.configure({
106106
}))
107107
```
108108

109+
## Specifying the mime type of the content
110+
111+
If you're using the `$clipboard` magic function, you can pass an additional argument to the function specifying the mime-type of the content. This is especially useful for copying things as HTML and being able to paste into rich text editors, email clients, etc.
112+
113+
```html
114+
<button x-on:click="$clipboard(content, 'text/html')">
115+
Copy as HTML
116+
</button>
117+
```
118+
109119
## Versioning
110120

111121
This projects follow the [Semantic Versioning](https://semver.org/) guidelines.

0 commit comments

Comments
 (0)