This website requires JavaScript.
Explore
Help
Sign In
TryGhost
/
Ghost
Watch
1
Star
0
Fork
0
You've already forked Ghost
mirror of
https://github.com/TryGhost/Ghost.git
synced
2024-11-25 09:03:12 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
3a11faf0b6
Ghost
/
ghost
/
admin
/
app
/
utils
/
copy-text-to-clipboard.js
4 lines
95 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Added integration details to Zapier integration screen behind dev flag no issue - the new version of our Zapier App uses API Key auth so we need to expose the details on the Zapier integration screen - extracted `copyTextToClipboard` into a util function - added `integrationModelHook` method to `settings.integrations` controller to remove duplication in the `settings.integration` and `settings.integration.zapier` routes - fixed missing "Zapier" title token
2019-04-04 14:25:16 +03:00
export
default
function
copyTextToClipboard
(
text
)
{
🐛 Fixed copy-to-clipboard buttons in Chrome + Firefox no issue - the method we used for copying text to the clipboard for older browsers has broken on some newer browsers - the more modern `navigator.clipboard.writeText` API is now universally supported by our target browsers so we're able to switch to that instead which is working across the board
2021-10-05 17:32:23 +03:00
navigator
.
clipboard
.
writeText
(
text
)
;
Added integration details to Zapier integration screen behind dev flag no issue - the new version of our Zapier App uses API Key auth so we need to expose the details on the Zapier integration screen - extracted `copyTextToClipboard` into a util function - added `integrationModelHook` method to `settings.integrations` controller to remove duplication in the `settings.integration` and `settings.integration.zapier` routes - fixed missing "Zapier" title token
2019-04-04 14:25:16 +03:00
}
Reference in New Issue
Copy Permalink