Created
June 30, 2020 05:45
-
-
Save AlexeyNik/32978c061d283401dd3d796b3b967c63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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