My app generates some text, which is a suggested email for the user to copy and paste. It is block of text (some of which is dynamic) and is formatted to include a few paragraphs, bullet points, and hyperlinked text.
I would like to add a button that says “copy text” which copies the text to the user’s clipboard (while preserving formatting), and allows the user to paste the text into the body of a new email.
So far, I’ve tried using the Air Copy to Clipboard plugin, which enables similar functionality, but unfortunately it seems to only allow me to copy text from an input field. The text in my app is not in an input field, it’s in a regular text field.
Can anyone help with ideas for how I can achieve this?