cannot do postback with HtmlEditorExtender and ie11


Found a postback problem because of the JavaScript runtime error: Invalid argument in the _editableDiv_submit of the htmleditor when using internet explorer 11.

The page didn't postback with ie11 and the htmleditor together because it found a problem in sel.collapse(this._editableDiv.firstChild, char) of the _editableDiv_submit

because didn't have much time I decided to temporary fix the function with the below:
if (!!navigator.userAgent.match(/Trident\/7\./) && Sys.Extended && Sys.Extended.UI && Sys.Extended.UI.HtmlEditorExtenderBehavior &&
    Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype && Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype._editableDiv_submit) {
    Sys.Extended.UI.HtmlEditorExtenderBehavior.prototype._editableDiv_submit = function () {
        var char = 3;
        var sel = null;
        setTimeout(function () {
            if (this._editableDiv != null)
        }, 0);                     
        this._textbox._element.value = this._encodeHtml();


petrozio wrote Dec 10, 2013 at 12:11 PM

I have also have this problem.

travissmithv1 wrote Jan 14 at 5:28 AM

I have this problem also.

thrsht wrote Feb 6 at 5:36 PM

Me too

mohanjava wrote Mar 11 at 6:17 PM

Yes, I am also facing the problem with Win 8 Pro (64bit) IE 11. Firefox is working fine.

Please help us to fix.


sraspnet wrote May 8 at 9:35 PM

I have this problem too.

I would like to try this temporary fix. Where am I supposed to add this piece of code?


jaymz7783 wrote Jul 30 at 10:03 PM

Also an error in Chrome, only Firefox is omitted from this

cwalls wrote Aug 9 at 1:53 PM

As with the others, I too am having this problem. How do I go about patching the code with the sample above?

cwalls wrote Aug 9 at 2:27 PM

Ahh, okay. I added the JS to the bottom of my page and all is now well.