I have an issue where the content of a textarea is overlapping outside of the textarea when saving to repository. It appears that the text is overflowing where the field height is defined. I am guessing this is the 'rows' element?
What is the rows element? it isn't an attribute? I would like to manipulate this and set it to match my number of lines if it exceeds the original setting (in the designer). In the above case, the original setting is 25. Here is the javascript I am using to determine the number of rows:
$('.textarea').on('change keyup', function(){ var text = $(this).find('textarea').val(); var lines = text.split(/\r|\r\n|\n/); var count = lines.length; console.log(count); });
How can I access the rows and change it?
It is surprising that when saving to the repository the preview does not match what is saved. Why is that?
Thanks!