go-js-dom
go-js-dom copied to clipboard
Missing document.execCommand()?
How would the equivalent of document.execCommand() be achieved in this library?
/cc @shurcooL
From looking at the API of this library, it appears it does not currently have support for execCommand.
If your question is "how would the equivalent of document.execCommand() be achieved in general", I don't know, that requires investigation. It's not a priority for me at this time, so I'm not working on it.
If you're interested in working on this, feel free to look into it.
I am using this as work-around:
js.Global.Get("document").Call("execCommand", "copy") // document.execCommand('copy');
Thanks @udhos, that sounds like the right solution. We can add an ExecCommand method that uses such an implementation. Whoever is interested in getting this added to dom can send a PR.