Re: Error on call to GetDocument

  •  04-20-2010, 11:43 AM

    Re: Error on call to GetDocument

    Hi Adam,
     
    thanks a lot, works like a charm.
     
    It´s not exactly detailed in the Demo you referred me to but it wasn´t too hard to figure out the rest based on the hints you gave me.
     
    For anyone facing a similar problem, sticking to the example given in this thread, here´s what to do to make the editor change color once it finishes loading:
     
    Create a page according to the example given by Kenneth.
    Now add this piece of code to the code-behind:
     
    protected void Page_Load(object sender, EventArgs e)
     {
        Editor1.AddInitializeScriptCode("new function(){changeColor();}");
     }
     
     Once the editor finishes loading, the 'changeColor'-function will be called.
     
    Thanks again to all contributors,
    Tobias
     
     
View Complete Thread