I’m attempting to parse newlines from pasted text from the clipboard into a single-lined TextField. I’d like to replace the newlines with ‘\n’ (or any other delimiter) in the text field and have it submit text with newlines (‘\n’ delimiter would suffice, as that’s automatically parsed within my message box already).
Is there any method I could use to go about this?
You could set TextField.multiline = false
Otherwise you should replace /n and /r to other chars