Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80923

Copy to Clipboard HTML

$
0
0

I want to copy an HTML string to the Clipboard. In the appstore there is an widget called 'ClipboardTextCopy' that can be used to copy plain text and from github I got the widget 'CopyURL', but again it is only possible the copy plain text. I looked on the internet and found that it is possible to add a tag specifying that it is a HTML string. Like this: 

window.clipboardData.setData("text", "<div>Testing</div>");

 

window.clipboardData.setData("html", "<div>Testing</div>");

 

Can anyone point me to a widget that has the option to copy HTML or how to change one of the above widget adding this tag?

 

Regards,

Peter


Viewing all articles
Browse latest Browse all 80923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>