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

JQuery Clone()

3 Answers 84 Views
Editor
This is a migrated thread and some comments may be shown as answers.
saurabh
Top achievements
Rank 1
saurabh asked on 14 Dec 2009, 04:45 PM
I have a RadEditor in a Div on a page. I use JQuery to clone that Div and try to use it multiple times on the page. But JQuery Clone command doesn't seem to work on RadEditor. The new RadEditor object does not render correctly.

I wanted to know, if the RadEditor supports JQuery. And if it does, then is there any sample which I can refer to.
If the radEditor does not support JQuery, then is there any way to add new RadEditors on the page using javascript.

Thanks
Saurabh.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Dec 2009, 01:55 PM
Hi Saurabh,

We are targeting the ASP.NET platform and RadEditor is an ASP.NET AJAX control, which depends on server-side creation. It is not possible to dynamically create RadEditor client-side, because the editor depends on a number of resources like links, colors, etc which are configured on the server as well as the editor's scripts are embedded in the Telerik.Web.UI.dll.
When the cloneNode(true);  is executed then only the editor's HTML is cloned but not the editor's object and for that reason the editor is not editable and it cannot be made editable.

For that reason our recommendation is to choose another approach to multiple the editor on the server.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
lbartroli
Top achievements
Rank 1
answered on 11 Jul 2011, 04:24 PM
And which are this recommendations??
0
Rumen
Telerik team
answered on 13 Jul 2011, 02:44 PM
Hi,

My idea is to create multiple editors dynamically. You can see an example how to create a new editor from the server in the following forum thread: http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-exception-multiple-controls-with-the-same-id-page-were-found.aspx

Kind regards,
Rumen
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
saurabh
Top achievements
Rank 1
Answers by
Rumen
Telerik team
lbartroli
Top achievements
Rank 1
Share this question
or