Problem/Motivation

Current code makes use of the deprecated document.execCommand method.

Proposed resolution

Use the new clipboard API and remove the unneeded dependency on jQuery.

The Clipboard API is now supported by over 95% of users: https://caniuse.com/?search=clipboard

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

mably’s picture

Title: Upgrade clipboard javascript code » Upgrade clipboard copy javascript code
Status: Active » Needs review
Related issues: +#3475726: Module not functional inside modal or entity browser
mably’s picture

Issue summary: View changes

  • mably committed aff9d57a on 8.x-1.x
    feat: #3560429 Upgrade clipboard copy javascript code
    
    By: mably
    By:...
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.