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

Rotator

3 Answers 38 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 15 May 2011, 03:26 PM
Is it possible to let user to insert rotator with data source in RadEditor?

Thanks,
Darren L.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 May 2011, 04:59 PM
Hello Darren,

RadEditor is a client-side browser tool, providing the ability to visually edit pure HTML text using the underlying Rich Text Editing engine of the browser. This browser engine supports only standard HTML/XHTML tags and plain text.

Please, note that if you put a server tag in RadEditor the editor will not strip the tag, but will not render it in Design mode.

The ASP and ASP.NET server tags are not HTML tags and the browser is not able to visualize them. The browser cannot visualize XML Tags and when you put <asp:button> in the editor, the server-side framework will not parse the content (as it is part of the editor, not part of the page).
So, instead of sending to the client the HTML tag <input type=button> it will send <asp:button> - which means nothing to the browser.

To understand the situation better, please create a new HTML page with extension .html and add your server tags content you put to the browser and load it in the browser.

RadEditor is more similar to a desktop HTML editor rather than to an integrated program like MS Word, FrontPage or Visual Studio for web and your scenario is not supported.

Greetings,
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
Darren
Top achievements
Rank 1
answered on 17 May 2011, 05:12 PM
Thank you for the detail reply. I understand RadEditor is pure HTML editor, not design time editor.

I think I may use a custom dialog and put a marker (regular html tag or something) in the editor content. Then I can replace the marker with a server control at run-time. Not sure if it can work this way. I will give it a try and see how does it work.

Thank you,
Darren L.
0
Rumen
Telerik team
answered on 19 May 2011, 12:04 PM
Hi Darren,

Yes, this is the proper way to implement your scenario.

All the best,
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.

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