clipboard: fix copy/paste bad typo, ugh (#4008)

omg, now this typo broke older versions of Firefox, christ.
followup to https://github.com/tldraw/tldraw/pull/4003

### Change Type

<!--  Please select a 'Scope' label ️ -->

- [x] `sdk` — Changes the tldraw SDK
- [ ] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [x] `bugfix` — Bug fix
- [ ] `feature` — New feature
- [ ] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [ ] `galaxy brain` — Architectural changes
- [ ] `tests` — Changes to any test code
- [ ] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know

### Release Notes

- Clipboard: fix copy/paste for older versions of Firefox
This commit is contained in:
Mime Čuvalo 2024-06-24 16:00:52 +01:00 committed by GitHub
parent 9850ef93e2
commit 8ac48877de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -546,7 +546,7 @@ const handleNativeOrMenuCopy = async (editor: Editor) => {
}), }),
]) ])
} else if (navigator.clipboard.writeText) { } else if (navigator.clipboard.writeText) {
navigator.clipboard.writeText(`<div data-tldraw>${stringifiedClipboard}</div data-tldraw>`) navigator.clipboard.writeText(`<div data-tldraw>${stringifiedClipboard}</div>`)
} }
} }
} }