9 Replies Latest reply on Mar 4, 2011 6:27 AM by sandromanke

    Prevent newline in s:TextArea

    chris00chris Level 1



      I am trying to create a multi-line TextInput by using a [Spark] TextArea and disallowing line breaks. (Perhaps there is a better way?)

      Anyway, to disallow newlines I am trying to use:




      But this doesn't seem to work. Neither does \n \u000d \u000c etc. Whatever I put in there in relation to newlines doesn't get excluded and just appears in the TextArea. Other characters such as "a" work fine.


      Does anyone have any ideas how to either get this to work, or how to prevent newline characters some other way, eg. incercepting events.