0 Replies Latest reply on Sep 14, 2010 5:29 AM by Thorsten Kummer

    Limit number of chars per line

    Thorsten Kummer

      Hi ,

       

      how to limit the number of chars per Line in a textArea or RTFEditableText?

      I have to do the following:

       

      Allow 25 Chars for first line,

      any other line should have max. 28 chars.

       

      First line should have a bold font.

       

      Not an easy thing..

      I tried to use a textarea fpr input and put the text into a datagrid in the textarea.change() event.

      This works, but I lose a lot of the standard features of the textarea (hyphenation etc.)

      The idea is to use only the textarea or a RTFEditor for applying the rules mentioned above.

       

      Thanks

      thorsten