I want to put selected text a user can select in a prompt.
function copyToClipboard (text) {
window.prompt ("Copy to clipboard: Ctrl+C, Enter", text);
}
The problem with this is that the text may have newlines. In that case, I only see the first line of the text. Is there anyway I can insert newlines or maybe have a custom prompt that allows this? Thanks.