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 ?
Asked
Active
Viewed 2,987 times
1
-
4Before asking a new question please learn to accept atleast some answers for your previous questions if they helped you. – Sai Kalyan Kumar Akshinthala Oct 17 '11 at 10:02
-
See this post: http://stackoverflow.com/questions/6969403/cant-get-execcommandpaste-to-work-in-chrome – Boris Smus Oct 18 '11 at 04:56
-
It works . Let say I execute command document.execCommand('cut') . Now i want to store this cut value into variable Is there any function for this or i have to make HTML object . – user894554 Oct 18 '11 at 05:33
-
1Please don't re-ask the same question. – Oct 25 '11 at 17:14