Skip to content

Best practice for enhancement(s) #57

@paskainos

Description

@paskainos

I’ve added clipboard.js support, and added contenteditable to certain elements. I used npm install clipboard --save (per guidance) to install clipboard.js, but I have a ‘utils.js’ file (linked in document head), residing outside the root directory, which:

  1. makes certain elements editable…
  2. removes ‘contentEditable’ attribute before copy…
  3. copies text (html)…
  4. reinstates contentEditable after copy…
  5. displays alert("Copied!")

In an effort to make this available and reusable, I’m wondering where to include the utils.js file (code). Any guidance is appreciated.

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