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);
}
}
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
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.
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
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.
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.
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!