4
Vote

cannot do postback with HtmlEditorExtender and ie11

description

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)
                this._editableDiv.focus();
        }, 0);                     
        this._textbox._element.value = this._encodeHtml();
    };
}
Regards,
WinSaaS

comments

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.

Thanks.