1. Darren
    Darren avatar
    36 posts
    Member since:
    Jan 2008

    Posted 15 May 2011 Link to this post

    Is it possible to let user to insert rotator with data source in RadEditor?

    Thanks,
    Darren L.
  2. Rumen
    Admin
    Rumen avatar
    13804 posts

    Posted 17 May 2011 Link to this post

    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.

  3. Darren
    Darren avatar
    36 posts
    Member since:
    Jan 2008

    Posted 17 May 2011 Link to this post

    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.
  4. Rumen
    Admin
    Rumen avatar
    13804 posts

    Posted 19 May 2011 Link to this post

    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.

Back to Top