Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Editor > PasteHTML resets cursor position
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered PasteHTML resets cursor position

Feed from this thread
  • nickybeit avatar

    Posted on Jun 15, 2011 (permalink)

    Hi Support,

    I'm  using RadEditor 7.1.2 with Custom Dialog as manager.

    PasteHTML button pastes the content at the beginning of the text. It is not pasting at the cursor position where it is..

    We are calling the dialog like this.

     editor.ShowDialog(
                            "ImagesDialogCS.aspx"
                            , null//argument
                            , 470
                            , 500
                            , InsertCustomImage
                            , null
                            , "Choose Image");


    InsertCustomImage
    function InsertImage(returnValue)
    {
    // some code

        if (returnValue != null)
        {
            //some code

                if(editor.IsIE)

                {

                    editor.PasteHtml("<a href=\"javascript:showImages()" ><img src=\""+std_icon+"\"  ></a>");
                }

                else

                {

                    editor.PasteHtml("<a href=\"javascript:showImages()" ><img src=\""+std_icon+"\" ></a>&nbsp;");
                }

        }
    }

  • Rumen Rumen admin's avatar

    Posted on Jun 20, 2011 (permalink)

    Hello Nickybeit,

    You can try the solution provided in the following help article: CreateRestorePoint.

    If the problem still persists, my recommendation is to migrate to the new and much enhanced RadEditor for ASP.NET AJAX, which offers support for all modern browsers. Migration instructions are available in the following article: Migration from RadEditor Classic to RadEditor for ASP.NET AJAX.

    Greetings,
    Rumen
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Editor > PasteHTML resets cursor position