Copier | Mike Bostock | Observable
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
Comments (5)
Tom Larkworthy
Feb 14, 2021
import {copy} from '@mbostock/copy-to-clipboard'
Grant Nestor
Sep 21, 2021
The clipboard API is no longer working in Observable notebooks for Chrome 93.0.4577.82. I created a post in the Observable forum:
https://talk.observablehq.com/t/clipboard-api-stopped-working-in-chrome-93-0-4577-82/5600
Mike Bostock
Sep 21, 2021
I’ve tested this in all browsers and it works. You will, however, need to be using Next rather than Classic, as only Next has the clipboard-write permission enabled.
Grant Nestor
Sep 22, 2021
@mbostock
I can confirm that it's working in Next 👍
Reply
Fabian Iwand
Apr 26, 2022
The previous version that used execCommand() can be found here:
https://observablehq.com/@mbostock/copier@79
Reply
Add comment
Subscribe to notifications
Observable
Sign in
Mike Bostock
25
Reply
Reply
Add comment
Subscribe to notifications
9
Copier | Mike Bostock | Observable