CuteEditor - IE 11 Problem: Cannot get passed information from editor content in custom dialog form with IE 11

  •  05-12-2014, 10:29 AM

    CuteEditor - IE 11 Problem: Cannot get passed information from editor content in custom dialog form with IE 11

    I use this function (var newwin = editor.ShowDialog(null, mURL, editor, mSize);)  to open a custom dialog window. 

     

    In dialog form, I use function as bellow to get text selection from editor control. It works fine. 

    But in IE 11, argument "window" is not a object. So I cannot get selected text in editor.

     

    --------------------------------------------------------------------------------------

    var editor = Window_GetDialogArguments(window); 

     

     function Window_GetDialogArguments(win) {

                        var top = win.top;

                        try {

                            var opener = top.opener;

                            if (opener && opener.document._dialog_arguments)

                                return opener.document._dialog_arguments;

                        }

                        catch (x) {

                        }

                        if (top.document._dialog_arguments)

                            return top.document._dialog_arguments;

                        if (top.dialogArguments)

                            return top.dialogArguments;

                        return top.document._dialog_arguments;

       } 

View Complete Thread