8000 Missing document.execCommand()? · Issue #37 · dominikh/go-js-dom · GitHub
[go: up one dir, main page]

Skip to content

Missing document.execCommand()? #37

Open

Description

@kylewolfe

How would the equivalent of document.execCommand() be achieved in this library?

Activity

  1. dominikh commented on May 22, 2017

    @dominikh
    Owner
  2. dmitshur commented on May 22, 2017

    @dmitshur
    SponsorCollaborator

    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.

  3. udhos commented on Jun 30, 2017

    @udhos

    I am using this as work-around:

    js.Global.Get("document").Call("execCommand", "copy") // document.execCommand('copy');

  4. dmitshur commented on Jun 30, 2017

    @dmitshur
    SponsorCollaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0