Skip to content
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

Add Copy to Clipboard #7

Open
deadcoder0904 opened this issue Nov 14, 2024 · 2 comments
Open

Add Copy to Clipboard #7

deadcoder0904 opened this issue Nov 14, 2024 · 2 comments

Comments

@deadcoder0904
Copy link

App is good but Markdown needs to be copied to clipboard in 1 click.

@tushar-prox
Copy link

This is a duplicate of #2

@GeekyChirag-030
Copy link

document.getElementById("copyButton").addEventListener("click", function() {
navigator.clipboard.writeText(document.getElementById("extractedText").innerText)
.then(() => {
console.log('Text copied to clipboard');
})
.catch(err => {
console.error('Error copying text: ', err);
});
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants