feat: add copy api and paste into correct workspace by maribethb · Pull Request #9215 · RaspberryPiFoundation/blockly

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @maribethb!

I think the changes make a lot of sense, particularly moving state back into clipboard (my conceptualization of this component is that it would be inherently stateful).

I also like the clipboard API changes because they should make it straightforward, I think, to swap the backing data source in the future when we actually integrate fully with the web clipboard API, though I suspect we'll need to expand the data representation to make that work correctly.

Approving since my comments are generally only informational or seeking clarification.