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

Inserting flash in existing pages

3 Answers 52 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Walter Mauricci
Top achievements
Rank 1
Walter Mauricci asked on 19 May 2010, 01:02 PM
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

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 19 May 2010, 03:27 PM
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.
0
Walter Mauricci
Top achievements
Rank 1
answered on 19 May 2010, 04:10 PM
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)
0
Stanimir
Telerik team
answered on 20 May 2010, 08:05 AM
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.
Tags
WebParts for SharePoint
Asked by
Walter Mauricci
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Walter Mauricci
Top achievements
Rank 1
Share this question
or