Typescript: how to copy text on clipboard

Hi! Could you help me? I need to copy a string (game result) in clipboard so that the user can save it. Is it possible to do this?

1 Like

Hi @jshmidt,

Unfortunately the DOM (Document Object Model) is not available within CoSpaces, so the Navigator.clipboard property is not accessible.

There is currently no storage capability like Scratch’s cloud variable either, so unless you’re implementing this capability as a web service, it’s not possible to export strings or scores out of CoSpaces.

You’re welcome to submit a feature request as a new topic on this forum (tag it with feature-request).

All the best,

Geoff @ TechLeap

1 Like