Copy link to clipboard
Copied
My code generates a multi-line string that I would like to copy to the clipboard so it can be pasted outside of my web app, but I don't know how.
Alternatively I could use a text input component and have the code paste it there, but when I copy the text from the text input, it's no longer multi-line. Normally I would have used a dynamic text field with selectable text, but that's not supported in HTML5 Canvas, same goes for just a standard text input field.
I log the string to the console and it shows up on multiple lines in the console, so it's formatted correctly.
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now