brackets-shell

not able to execute command window.document.execCommand(“paste”) in brackets

走远了吗. 提交于 2020-01-17 07:57:21
问题 I wrote a plugin in brackets in which I want to copy text from the text box and paste in the current opened document . window.document.execCommand("copy"); if I use keyboard command+v its working, I am able to paste the text which is copied by the above dom command. But the same result I'm not able to get by window.document.execCommand("paste") , even though I tried this CommandManager.execute(Commands.EDIT_PASTE) too. could you help me please. Regards Ashish. 回答1: Those commands won't work