我想通过单击ContextMenu进行扩展以将选择复制到clipboasd.在chrome中,很多人都使用flash solusion.但是如何在ContextMenus中使用flash.这似乎是不可能的.谁能告诉我一个solusion?
我做了什么
var a = chrome.contextMenus.create({"title":copy,"context":["selection"],"onclick":copy});
function copy(info,tab){
document.execCommand('selectAll'); //just for example
document.execCommand('copy');
}
Run Code Online (Sandbox Code Playgroud)
我已经将manifestWrite权限添加到manifest.json.But它似乎不起作用."许可":[ "contextMenus", "clipboardWrite"]