pasteHtml not working in IE8

6 posts, 0 answers
  1. alekhya
    alekhya avatar
    8 posts
    Member since:
    Feb 2011

    Posted 06 Jun 2011 Link to this post

    Hello

    I am getting text from radtreeview and trying to put the text in radeditor

    i am doing it using fallowing JavaScript it is working fine in chrome. In IE8 pasteHtml is overwriting previous content in radeditor
    function SetPlaceHolders(sender, args) {
         
                var Tree = $find("<%=RadTreeView_CommonControls.ClientID%>");
                var selectedNode = Tree.get_selectedNode();
                var text = selectedNode.get_value();
     
                if (text != null) {
                 
     
                    var editor = $find('<%= RadEditor_setupContent.ClientID  %>');
                              
                     editor.pasteHtml(text);
                }
            }
     i have tried fallowing links still i am facing same problem :

    http://www.telerik.com/community/forums/aspnet-ajax/editor/pastehtml-replacing-all-text-in-ie8.aspx
    http://www.telerik.com/community/forums/aspnet-ajax/editor/pastehtml-after-node-at-cursor-position.aspx
    Thanks and regards
    Alekhya
  2. Rumen
    Admin
    Rumen avatar
    13751 posts

    Posted 08 Jun 2011 Link to this post

    Hello Alekhya,

    You can try the solution provided in the following live demo which also use the pasteHtml method to paste images in the content area: Drag-and-drop Images in RadEditor.

    If you still experience any problems open a support ticket and provide a fully working project which demonstrates them.

    Best regards,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. alekhya
    alekhya avatar
    8 posts
    Member since:
    Feb 2011

    Posted 09 Jun 2011 Link to this post

    hello rumen


    SetFoucs() is not working for me.
    Here i am sending Images 

    Here in image you can see  Text

    "Hello JohnGood   Day" in rad editor.
    on selection of a node in radtreview i got text "Good Day" i have pasted text in editor
    then i have placed cursor in between  Good and Day .
    Now i have selected another node from tree view "Hello jhon" and pasted it in editor.
    I want Hello Jhon to be placed at cursor position text should be like Good Hello John Day.
    in Mozilla and chrome text is getting pasted at cursor position 

    Thanks and regards
    alekhya




     


  4. Rumen
    Admin
    Rumen avatar
    13751 posts

    Posted 14 Jun 2011 Link to this post

    Hi Alekhya,

    Could you please set the ContentAreaMode property of RadEditor to Div and test again?
    If you still experience any problems, please isolate them in a simple working project and send it for examination by opening a support ticket.


    Best regards,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  5. indira
    indira avatar
    1 posts
    Member since:
    Jul 2011

    Posted 25 Jul 2011 Link to this post

    Hello Rumen,
                           The solution which you had given was not working.I had set the property of ContentAreaMode property of RadEditor to Div. Still there was no use. So,kindly do the needful help as soon as possible.Waiting for your reply.


    Thanks and regards,
    Priyadarshini.

  6. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 26 Jul 2011 Link to this post

    Hi Priyadarshini,

    We are aware of an issue with the selection being lost in InternetExplorer, but unfortunately, we have not been able to find a workaround so far. You can find more information on the subject in the following forum thread:
    How to paste / inseret the text at cursor position in RadEditor ???

    All the best,
    Dobromir
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top