Search code examples
jqueryinternet-explorer-9jhtmlarea

jHTMLarea - Selecting text doesn't work in IE9


jHTMLarea works in all the browsers, but in IE9, if the textbox requires a scrollbar, anything below the initial window won't highlight when the user goes to highlight it.

The code below is what I use to call the plugin.

       $(function() {
            $("#aboutTextEdit").htmlarea({
            toolbar: ["bold", "italic", "unorderedList", "|", "link", "unlink" ], 
                loaded: function(event) {               
                }
            });
        });

Solution

  • Figured it out!! Thanks to Warren Bullock

    And using this stackOverflow question (once I figured out it was an iframe issue): Unable to select the text left in the Iframe beyond the visible area

    the kicker is going into the jHTMLArea file and commenting out this line: edit.designMode = 'on';

    which is on line 308. Works great in all browsers now!