Ryan Chandler пре 1 година
родитељ
комит
c9eef80a20
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10 0
      README.md

+ 10 - 0
README.md

@@ -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.