RadEditor and SharePoint 2010

2 posts, 0 answers
  1. will
    will avatar
    1 posts
    Member since:
    Jun 2009

    Posted 10 Apr 2011 Link to this post

    SharePoint strips certain HTML tags including <iframe> <video> etc.  Is there any easy customization in the radeditor control to stop sharepoint form stripping certain html tags.  With HTML5 video and the use of iframes to embed you tube video this is going to become more and more of an issue especially for WCM and blog use
  2. Stanimir
    Stanimir avatar
    1654 posts

    Posted 11 Apr 2011 Link to this post

    Hi will,

    It is possible to insert tags such as iframe in WCM scenario. However you need to use SharePoint Designer in order to replace the original RichHtmlField with RadHtmlField. Review the "Using SharePoint Designer"  part of the following online help article: Using RadEditor in Web Content Management scenario.

    In your case you need to add the RadHtmlField in the page and then set its AllowSpecialTags property to "true". Here is a sample of code:
    <telerik:RadHtmlField FieldName="PublishingPageContent" AllowSpecialTags="true" runat="server"></telerik:RadHtmlField>

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top