jquery-highlighttextarea
jquery-highlighttextarea copied to clipboard
Using with jqueryautosize
I am trying to use your highlightTextarea with another jqueryplugin called "jqueryautosize" which dynamically autosizes the height based on the content in the textarea.
I know highlightTextarea is a bit picky about specifying height and I'm having some issues with incorrect highlighting positions when using both plugins together. I think it has to do with the scrollbar either appearing or not based on what is in the textbox. Do you have any suggestions on how I might get around this issue?
Thanks again for a great plugin. It really helps me.
I added this code only and it works great
this.$el.bind('keyup change input', function () { that.$main.css({'height': that.$el.outerHeight(true)}); that.$container.css({'height': that.$el.height()}); })
It will track any change in textarea. and adjust container size.
Thank u Andrej too, could you explain me better how to include your code? rob
Is there any example?
Thanks!
Hi, this is still a bug.