clipBoard using chrome api execCommand

白昼怎懂夜的黑 提交于 2020-01-16 00:43:19

问题


I am using chrome extenstion and want to implement cut copy paste command . In my project i am using canvas . I want to use execCommand function for this . when i implement document.execCommand('copy') and then paste it does not work . i have also changed permission in manifest file . can anybody tell me how this command will work . i tried link http://www.geekpedia.com/tutorial126_Clipboard-cut-copy-and-paste-with-JavaScript.html but document.selection.... is not working undefine error come ?

来源:https://stackoverflow.com/questions/7792139/clipboard-using-chrome-api-execcommand

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!