Re: JS Exception: Component returned error code: 0xc1f30001 (Gecko Implementation only)

  •  01-31-2008, 4:29 AM

    Re: JS Exception: Component returned error code: 0xc1f30001 (Gecko Implementation only)

    No, there are two separate issues:
     
    1. The error messages do not appear in the two links BUT if you hide the div when it is not fully initialized and then show it again then the text area is missing ... it does not happen every time though and is fixed only when the page is refreshed.
    2. As for the JS Exception, it is caused by using ce.setHTML("") or ce.ExecCommand('New'). I have found a workaround now that appears to solve the problem ... when encountering an empty string I use ce.setHTML(" ") and then there is no error message, the cool thing is that because you trim spaces from the string the window is clear ... the function is below:
     
    function HTMLFieldSetContent(s)
        {
        var ce=document.getElementById('CE_Editor_ID');
       
        if(s!=undefined&&ce&&ce.IsReady)
            {
            if(s=='')
                ce.setHTML(' ');
            else
                ce.setHTML(s);
            }
        }

    I hope this helps.
View Complete Thread