Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler committed Oct 5, 2023
1 parent 7a2847a commit c9eef80
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ Alpine.plugin(Clipboard.configure({
}))
```

## Specifying the mime type of the content

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.

```html
<button x-on:click="$clipboard(content, 'text/html')">
Copy as HTML
</button>
```

## Versioning

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

0 comments on commit c9eef80

Please sign in to comment.