-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy text as HTML #80
Labels
Comments
Interesting. But currently, I am swamped with my work projects. I don't think I will implement it anytime soon. |
@DDeis did you ever find a work around for your specific case? I am trying to do the same thing. |
Hi @stevenernst131, a bit late but to answer your question, I used clipboard-js library which is now depracated and replaced by clipboard-polyfill |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm have HTML text in a variable (e.g.
const html = '<strong>Hello <em>world</em></strong>';
).When I'm copying this variable using
clipboardService.copyFromContent
:Then paste it into a mail the pasted text is
Is there a way to copy text as HTML so it stays formatted when pasted, i.e. having the titles in big font size, bold text, italic, etc.
On a previous project on AngularJS, I was using https://www.npmjs.com/package/clipboard-js (not https://www.npmjs.com/package/clipboard) and it was working fine, so maybe it can be possible with this library as well ?
The text was updated successfully, but these errors were encountered: