Upload / insert not working for editor created in code

  •  05-29-2013, 10:08 AM

    Upload / insert not working for editor created in code

    Hi

     

    I'm using the following code in an aspx.cs file:

     

    RTE.Editor ed = new RTE.Editor();

    ed.Toolbar = "custom";

    placeholder.Controls.Add(ed);

     

    It creates the editor just fine but clicking on "insert image" gives the following:

     

     

    This is also the case for the insert document dialog.

     

    Clocking upload in those two dialogs results in the following message:

     

     

    NOTE:

     

    if I create the tag manually on the aspx page, then upload works without problems.

     

    <RTE:Editor id="editor" Toolbar="custom" runat="server" />

     

     

     

    Kind regards

    Bent Bracke

     


    BRACKE - bracke.dk
View Complete Thread