This is a migrated thread and some comments may be shown as answers.

pasteHtml not working in IE8

5 Answers 71 Views
Editor
This is a migrated thread and some comments may be shown as answers.
alekhya
Top achievements
Rank 1
alekhya asked on 06 Jun 2011, 07:14 AM
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

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Jun 2011, 02:58 PM
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.

0
alekhya
Top achievements
Rank 1
answered on 09 Jun 2011, 06:21 AM
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




 


0
Rumen
Telerik team
answered on 14 Jun 2011, 01:46 PM
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.

0
indira
Top achievements
Rank 1
answered on 25 Jul 2011, 08:08 AM
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.

0
Dobromir
Telerik team
answered on 26 Jul 2011, 01:30 PM
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!

Tags
Editor
Asked by
alekhya
Top achievements
Rank 1
Answers by
Rumen
Telerik team
alekhya
Top achievements
Rank 1
indira
Top achievements
Rank 1
Dobromir
Telerik team
Share this question
or