Error on call to GetDocument

  •  04-16-2010, 10:44 AM

    Error on call to GetDocument

    Hello Everyone,
     
    I´m trying to attach an event handler to the editor like it is shown in the demo:
     
    var editor1 = document.getElementById('CE_ctl00_mcp_te_editor_ID');
    var editdoc=editor1.GetDocument();
    [...]
     
    On the second Line an error occurs: "Object doesn’t support this property or method ". 
     
     The code runs inside a function which is execute in the window.onload event handler, so all the controls should be there.
     
    I´ve seen some posts in this forum concerning the same problem, but there never was a solution. The error occurred in  Version 6.0 so I upgraded to v6.6 but the result is the same.
     
    The Editor resides inside an ascx (.NET Control) which itself is embedded in an aspx-Page (surprise!). I´m using IE8.
     
    Does anybody know what I can do to resolve this Problem?
     
    Thanks a lot,
    Tobias
     
View Complete Thread