3
Vote

The hidden textarea does not update if you dont blur and focus jHtmlArea again

description

Hello, I've writen a workaround for fixing this.
 
At the bottom of the init function:
 
$(this.iframe.get(0).contentWindow.document).keyup(function(){
                jHtmlArea(elem).updateTextArea();
            });
 
Ps: I love this plugin. It's extremely easy to extend and understand code.

file attachments

comments

xaguilars wrote Mar 18, 2010 at 12:26 PM

In addition, I've made the inner editor to have dinamic width (depending on the textarea width), setting % widths. See init function in the attachment.

EliW wrote Mar 25, 2010 at 4:09 PM

This is the same issue as #8969 - The fix presented in the comments there also works w/ less effort on the browsers part. An onSubmit function call instead of every keypress. Either way, this needs fixed. Thanks.