Closed ramiabraham closed 8 years ago
Hey @ramiabraham, tried testing this, but it never copies to the clipboard. Which browser are you using where this works?
@jtsternberg did you compile grunt first?
Yah. I think I got it now. Thanks
💥 Thank you sir 👑 @ramiabraham
@jtsternberg Woot!
Adds copy functionality using
execCommand(‘copy’)
to directly copy the code snippet to the clipboard.cpt.openSnippetCopy()
on failure.cpt.browserCopyStyles()
to set styles because I couldn’t immediately locate an effective means to manipulate styles via the scss/css alone.wp.a11y.speak
is commented out in two cases infrontend.js
, as the eslintrc config returns an undef error onwp
. A custom global/environment handler forwp
- or a line-level eslint rule is required (or suppression of the error itself).Appearance: