Skip to content

Instantly share code, notes, and snippets.

@AlexeyNik AlexeyNik/copyText
Created Jun 30, 2020

Embed
What would you like to do?
https://community.adobe.com/t5/coding-corner/adobe-cep-v9-i-cant-seem-to-copy-the-html-text-from-panel-to-the-os-clipboard-with-javascript/m-p/10896257?page=1
function click_copyList(){
var copyText = document.getElementById("fileNameTable").innerText; // gets text from table
document.getElementById("holdText").innerText = copyText;//send table text to input field
document.getElementById("holdText").select();//select or highlight the input field text
document.execCommand("copy");//copy selected text
alert("copied the text!");
} //end copyList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.