Copier | Mike Bostock | Observable
ojs
ojs
ojs
ojs
ojs
ojs
Author
Mike Bostock
@mbostock
Visualization toolmaker. Founder
@observablehq
. Creator
@d3
. Former
@nytgraphics
. Pronounced BOSS-tock.
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
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
Mike Bostock
25
Reply
Reply
Add comment
Subscribe to notifications
9
Copier | Mike Bostock | Observable