Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

Last post 06-24-2009, 11:13 PM by yuvika. 16 replies.
Sort Posts: Previous Next
  •  04-02-2009, 4:44 AM 50684

    Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

    When Cute Editor is in a frameset using IE 7 it fails with the following error:
    'Unspecified Error' Then
    'Object doesn't support this property or method'
     
    This has been happening since we upgraded to 6.3 and is a very critical issue for us.

    A test case is attached at /forum_uploads2/CuteEditError.zip.

    This is caused when:
    1. The editor is in a frameset
    2. The document has never been focused (editdoc.selection.type === "None")
    3. editdoc.selection.createRange() is called.

    The partial fix:
    File=IE_Implementation\CuteEditorImplementation.js

    function Ox8ea() // Wrap the createRange in this function like this:
    if (Ox8a6 !== "None") {
        var Oxa = editdoc.selection.createRange();
    }

    function Ox9b3() // Wrap the createRange in this function like this:
    function Ox9b3() {
        var Ox12f = editdoc.selection;

        if (Ox12f.type != "None") {
            var Oxa = Ox12f.createRange();
            var p;
            if (Ox12f.type == 'Control') {
                p = Oxa.item(0);
            } else {
                p = Oxa.parentElement();
            }
            if (p != editdoc.body &&
                !editdoc.body.contains(p)) {
                return false;
            }
        }
        return true;
    }

    function Window_GetSelectionBookmark(Ox1b5) // Change this function as follows:
    function Window_GetSelectionBookmark(Ox1b5) {
        var Ox12f = Ox1b5.document.selection;
        if (Ox12f.type. == 'Control') {
            var arr = Window_GetSelectedControls(Ox1b5);
            for (var i = 0; i < arr.length; i++) {
                arrIdea = Window_GetSelectionBookmark_GetControlPosition(arrIdea);
            }
            return {type: 'Control', controls: arr};
        } else {
            var Ox6b0 = {type: 'Text', bookmark: null};
            
            if (Ox12f.type !== "None") {
                var Ox1a2 = Ox12f.createRange();
            
                try {
                    Ox6b0.bookmark = Ox1a2.getBookmark();
                } catch (x) {
                }
                try {
                    if (Ox1a2.text == '') {
                        var Ox14a = Ox1a2.parentElement();
                        if (Ox14a.nodeName != 'BODY') {
                            var Ox98a = Window_GetSelectionBookmark_GetControlPosition(Ox14a);
                            var Ox6bc = Ox1a2.duplicate();
                            Ox6bc.moveToElementText(Ox14a);
                            var len = Ox6bc.text.length;
                            Ox6bc.setEndPoint('EndToEnd', Ox1a2);
                            if (len == Ox6bc.text.length) {
                                Ox6b0.nodeposition = Ox98a;
                            }
                        }
                    }
                } catch (x) {
                    Ox6b0.nodeerror = x;
                }
            }
            return Ox6b0;
        }
    }

    Thanks

    Flintstone
  •  04-03-2009, 4:03 AM 50750 in reply to 50684

    Re: Javascript error when editor is in frameset in IE 7 (Fix included)

    This bug was introduced in Cute Editor 6.3
  •  04-03-2009, 12:51 PM 50773 in reply to 50750

    Re: Javascript error when editor is in frameset in IE 7 (Fix included)

    Flintstone:
    This bug was introduced in Cute Editor 6.3

    We are investigating this issue and will get back to you as soon as possible.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-15-2009, 2:15 AM 51098 in reply to 50773

    Re: Javascript error when editor is in frameset in IE 7 (Fix included)

    Is there any update on this issue? We will have to downgrade if this is not fixed soon.
  •  04-17-2009, 7:43 AM 51201 in reply to 51098

    Re: Javascript error when editor is in frameset in IE 7 (Fix included)

    Hi,
     
    Yes 6.3 version has some problems.I am also facing the same issue when I pasteHTML in absolute DIV
     
    Please provide fix for it.The above fix does not work for me.
     
    Thanks and Regards
    Yuvika
  •  04-17-2009, 10:26 AM 51206 in reply to 51201

    Re: Javascript error when editor is in frameset in IE 7 (Fix included)

    The fix was just to point them at what was causing the issue ... they need to change the code in a lot of places to truly fix the issue. This has become a very major issue for us and we may now be dropping this editor from our web app.
  •  04-17-2009, 12:30 PM 51214 in reply to 51206

    Re: Javascript error when editor is in frameset in IE 7 (Fix included)

    Flintstone,
     
    We can reproduce this issue and will fix it as soon as possible.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-17-2009, 1:27 PM 51219 in reply to 50684

    Re: Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

  •  04-17-2009, 11:29 PM 51230 in reply to 51219

    Re: Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

    Hi,
     
    Hope this solve's my problem pasting HTML in absolute div too.
    Thanks for the update.Waiting for the latest build for download.
     
    Thanks and Regards
    Yuvika
  •  04-20-2009, 12:27 AM 51243 in reply to 51230

    Re: Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

    Hi,
     
    I just downloaded cutesoftclient again today. But there is no updated build.
    When can I get the new build that solves the above problems.It was expected to be uploaded last night.
     
    Hope to get reply from cutesoft soon.
     
    Thanks and Regards
    Yuvika
  •  04-20-2009, 3:46 AM 51250 in reply to 51243

    Re: Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

    Hi Yuvika,
     
    I download the latest version and tested use the example you send me before, it works fine now.
     
    Can you download it and try again?
     
    Download:
     
     
    Regards,
     
    Ken
  •  04-22-2009, 12:35 AM 51346 in reply to 51250

    Re: Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

    Hi Ken,
     
    I don't know what is changed in the version I have downloaded now. But my previous code has stopped working after it.
    I am storing the position's of cute editor as I am inserting the HTML on button click. And also in the example the code does not work the first time the window is opened.Later on when the window is open, and I put my cursor there in the editor then it is pasted correctly.But in my real applucation that POPUp is modal popup and there will be no orpion user can add cursor at that time after the pop up is open.
     
    Hope I am able to explain my problem. Right now I have changed my storing the cursor postion function to as below:
     
    function storeSelection() {
     
    var editor1 = EditorArea;

    var editdoc = editor1.GetDocument();

    var range = editdoc.selection.createRange();

    var pos = document.selection.createRange();

    if (editdoc.selection.type == 'Control') {

    var element = range.item(0);

    if (element.tagName.toString().toLowerCase() == 'input') {

    window.range = pos;

    }

    else {

    window.range = range;

    }

    }

    else if (editdoc.selection.type == 'None') {

    window.range = pos;

    }

    else {

    window.range = range;

    }

    }

     
    Which previously was something like this:
     

    getSelection = function() {
        var c = document.getElementById(EmailVariables.Editor1);
        if (c) {
            return c.GetSelection();
        }
    }

    createRange = function() {
        var selection = getSelection();
        if (selection) {
            if (selection.createRange) {
                return selection.createRange();
            }
            if (selection.rangeCount && selection.getRangeAt) {
                return selection.getRangeAt(0);
            }
        }
        return null;
    }

    select = function(range) {
        if (range.select) {
            if (range.select() != undefined) {
                range.select();
            }
        }
        else {
            var selection = getSelection();
            if (selection.removeAllRanges && selection.addRange) {
                selection.removeAllRanges();
                selection.addRange(range);
            }
        }
    }

    restoreSelection = function() {
        try {
            if (window.range)
                select(window.range);
        } catch (e) { }
    }

    storeSelection = function() {
        window.range = createRange();

    }

     
     
    Thanks and Regards
    Yuvika
  •  04-23-2009, 9:40 PM 51471 in reply to 51346

    Re: Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

    Hi yuvika,
     
    I tested use the example you send me before, contain three page 'testEditor.aspx', 'testEditorFrameset.aspx', and 'testEditorLeftFrame.aspx' is that right?
     
    If so, the example is works for me now after I download the latest version.
     
    If you still have this issue, please sent your test code to me.
     
    Regards,
     
    ken
  •  04-27-2009, 12:11 AM 51545 in reply to 51471

    Re: Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

    Hi Ken,
     
    No this was not my example.I sent you an example in which there were 2 pages. The default.aspx page was opening new page and that page was pasting the content in the base page.
    I have tried that example but the text does not gets saved in first step.
    And further also the new code has also causes problem with my previous code already working.So I have rolled back the version just updated few days back, But still I am on version 6.3 I wll be doing the posiible modifctaion's from my side, else I have to rollback to the previous version I was using. Also this version is not working with the salesforce, from design point of view. will be putting some more efforts to get this working today.
     
    Thanks and Regards,
    Yuvika
  •  04-28-2009, 5:34 AM 51598 in reply to 51545

    Re: Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

    Hi yuvika,
     
    Can you sent the example to me again?
     
     
     
    Regards,
     
    Ken
  •  05-16-2009, 4:14 PM 52235 in reply to 51545

    Re: Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

    yuvika:
    Hi Ken,
     
    No this was not my example.I sent you an example in which there were 2 pages. The default.aspx page was opening new page and that page was pasting the content in the base page.
    I have tried that example but the text does not gets saved in first step.
    And further also the new code has also causes problem with my previous code already working.So I have rolled back the version just updated few days back, But still I am on version 6.3 I wll be doing the posiible modifctaion's from my side, else I have to rollback to the previous version I was using. Also this version is not working with the salesforce, from design point of view. will be putting some more efforts to get this working today.
     
    Thanks and Regards,
    Yuvika
     
    This issue is fixed in version 6.4.
     
    Demo:
     
     
    Please download the latest code.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-24-2009, 11:13 PM 53489 in reply to 51598

    Re: Cute Editor 6.3 breaks when in frameset in IE 7 (Partial fix included)

    Issue Resolved.
    I resolved this issue by adding the 2 style's on my page.

    <style>

     

    .CuteEditorDropDown

    {

    float: left;

    border: #dddddd 1px solid;

    }

    .CuteEditorDropDown Span

    {

    font: normal 11px Tahoma;

    }

    </style>

    Issue resolved.

    Thanks and Regards
    Yuvika
    Filed under:
View as RSS news feed in XML