We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be great to have the option to support text/html and text/plain in parallel when one or the other is available.
For example: paste in notepad the text/plain and paste in MS Word text/html.
The text was updated successfully, but these errors were encountered:
This worked for me
copyToClipboard(plainTxt, { format: 'text/plain', onCopy: (clipboardData) => { // copy rich text also clipboardData.setData('text/html', html); } });
Sorry, something went wrong.
onClick={() => { const content = editorRef.current.getInstance().getHtml(); copy(content, { format: 'text/plain', onCopy: clipboardData => { (clipboardData as any).setData('text/html', content); message.success('Successfully copy daily report'); }, }); }}
@gargroh 's method is worked fine
No branches or pull requests
It would be great to have the option to support text/html and text/plain in parallel when one or the other is available.
For example: paste in notepad the text/plain and paste in MS Word text/html.
The text was updated successfully, but these errors were encountered: