Why is document.execCommand(“paste”) not working in Google Chrome?

前端 未结 7 1773
广开言路
广开言路 2020-11-27 06:59

I have a problem with my extension. I want to paste data from the clipboard.

So far, I\'ve got this:

function          


        
7条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 07:07

    You can't execute it on a regular page, only in a background page.

提交回复
热议问题