Inserting flash in existing pages

4 posts, 0 answers
  1. Walter Mauricci
    Walter Mauricci avatar
    3 posts
    Member since:
    Apr 2010

    Posted 19 May 2010 Link to this post

    Hi!

    So, we've purchased RadControls in order to provide our users with the ability to insert flash files into a page. The trial version of radeditor looked fine, however, content could not be saved(because it was a trial version?). Now that we have the full version I am very disappointed to see that even if radeditor smoothly can replace the existing default editor on a page by activating a feature, the uploading of flash files will not work until you modify the actual aspx-file and replace the default <PublishingWebControls:RichHtmlField ... > with the <telerik:RadHtmlField...>. Which makes the feature that replaces the content editor  unnecessary. Am I understanding this correctly? And if so, the flash functionality of the RadEditor is greatly limited, becuse it will not work on existing sites unless each and every one of these sites are modified manually. Do you have any better suggestions for this scenario than modifying all pages in SharePoint Designer? (Which we do not use since it is a bad tool.)

    Regards
    Helena
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 19 May 2010 Link to this post

    Hello Walter,

    Unfortunately inserting of Flash and media in WCM scenario is available only if you replace the original editor through SharePoint Designer.

    Here is what you can do:

    1. You can create your own custom field control, which inherits RadHtmlField class, which is defined in the Telerik.SharePoint.FieldEditor namespace of RadEditorSharePoint.dll. In it you can set the AllowScripts and AllowSpecialTags properties to true.

    2.You can ask for the source code of RadEditor for MOSS in an official support ticket (not in a forum thread) and we will provide it. You can use the source code to create your own custom wsp solution, where you need to modify the RadHtmlField class. Set the two mentioned above properties to true by default.



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

  3. Walter Mauricci
    Walter Mauricci avatar
    3 posts
    Member since:
    Apr 2010

    Posted 19 May 2010 Link to this post

    Actually, there is no need to involve SharePoint Designer in editing the pages, I can just edit my page layouts in Visual Studio. It seems to works good enough for me now. A wish for the future however, would be that the flash functionality works without all the extra trouble.

    Thanks!
    Helena (on behalf of Walter)
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 20 May 2010 Link to this post

    Hello Walter,

    No, we can not turn the flash or media functionality by default because of the way it is designed to work. Normally if you do not have RadEditor for MOSS all flash and media elements are stripped by the MOSS content filters. When you enable the RadEdiotr replacement feature this means that you only visually replace the original editor with the one provided by Telerik. In this case RadHtmlField does not modify the content that is saved to the server. So when you disable the feature or uninstall the control there is no problem using the original or other editor. When you set the AllowScripts and AllowSpecialTags properties to true in order to be able to preserve the flash and media elements RadHtmlField encodes the content before sending it to the server and decodes it again when it is to be rendered. In this case if you return the original RichHtmlField or uninstall the control the media and flash elements will not be rendered in presentation mode and there are going to be some meaningless tags in the source. However these elements are preserved so when you use RadEditor for MOSS again they will be rendered correctly.


    Regards,
    Stanimir
    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