Pasting TLF into Spark TextInput
I imagine I must be missing something, as I've searched a lot and no one is asking this question. We have a TextArea that we allow the user to style (size, color, etc.). We also have Spark TextInputs for forms in the application. When the user copies text, say 60 point red text, they can paste that into a TextInput and it keeps the formatting, thus messing up the TextInput. Is there a quick way to prevent formatting from getting pasted into the TextInput?
I have implemented a workaround where we trap any paste events into the TextInputs and use TLF to turn text in the TextClipboard into plain text, but that is not the cleanest or most efficient way to handle it. Is there something simple I'm missing that allows me to block styling being pasted into a TextInput?
