Adobe CEP v9, I cant seem to copy the HTML text from panel to the OS Clipboard with javascript
I am working on an extension for Adobe Bridge with CEPv9
Once my extension is loaded, I can select text in the panel manually with the mouse and right-click to copy. then proceed to paste outside of Bridge into other programs via normal OS copy/paste functions.
However, I cant seem to get the same .innerHTML text in the Panel to copy using a javascript function
Following the basic example on w3schools
my javascript:
var cText = document.getElementById("fileNameTable").innerHTML;
alert("cText = " + cText);
cText.select();
cText.setSelectionRange(0, 99999);
cText.copy(); //example says document.execCommand("copy");
The alert shows the text without issues, so i dont have a problem pulling the data.
Big picture, there is an html button that calls a function, said function would copy html text of specific element to the clipboard, user can then paste into another program.
I am a hobbyist to javascript so not sure where to look for answers.
and I wonder if this is Adobe preventing the command from working for security reasons?
Thank you.
