You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
consthtml=` <h1>Just a title</h1> <p> <strong>Hello <em>world</em></strong> </p>`this.clipboardService.copyFromContent(html,this.renderer);
Then paste it into a mail the pasted text is
<h1>Just a title</h1><p><strong>Hello <em>world</em></strong></p>
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.
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: