How to insert the values from the aspx page on a specific location (cursor position) on the editor.?

  •  12-11-2008, 8:00 AM

    How to insert the values from the aspx page on a specific location (cursor position) on the editor.?

     
    Hi Adam,
     
    to open a page from custom toolbar button is done by using following line of code.

    System.Web.UI.WebControls.Image Image1 = new System.Web.UI.WebControls.Image();

    Image1.ToolTip = "Insert something";

    Image1.ImageUrl = "CuteSoft_Client/CuteEditor/Images/face2.gif";

    Image1.CssClass = "CuteEditorButton";

    SetMouseEvents(Image1);

    Image1.Attributes["onclick"] = "BLOCKED SCRIPTgetsomething()";

    tc.Control.Controls.Add(Image1);

     
    Here The getsomething() method will open something.aspx page in popup. this page returns some string which needs to be paste on a specific plocation (cursor position) on the editor.
     
    now the problem is, How to insert the values from the aspx page on a specific location (cursor position) on the editor.?
     
View Complete Thread