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

Playing Video in Telerik Rad Editor Control.

3 Answers 156 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
ketan
Top achievements
Rank 1
ketan asked on 31 Aug 2010, 05:51 PM
Hi,

I am able to play video in telerik rad editor webpart, however when i place this telerik rad editor control in my article page [custom page layout] with video embeded in telerik rad editor control along with content and save the page. It does not save the video [code to integrate video in telerik rad editor control], however it saves the content placed along with the video.

Please Suggest.

Ketan

3 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 01 Sep 2010, 07:33 AM
Hello ketan,

You can use RadEditor for MOSS in three scenarios.
1. Web Part: In this case you can save media without any previous configurations.
2. List (list, wiki, blog): In this case every time you save the content the media will be stripped. You cannot enter media in this scenario.
3. Web Content Management (WCM): In this case first you need to replace existing PublishingWebControls:RichHtmlField with RadHtmlField, as it is explained in the "Using  SharePoint Designer" part of the following online help article http://www.telerik.com/help/aspnet-ajax/using-radeditor-in-web-content-management-scenario.html. Then you need to set the AllowSpecialTags property of RadHtmlField to true. Here is a code sample:
<telerik:RadHtmlField id="Content" FieldName="PublishingPageContent" AllowSpecialTags="true" AllowScripts="true" runat="server"></telerik:RadHtmlField>



Regards,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
ketan
Top achievements
Rank 1
answered on 02 Sep 2010, 05:17 PM
Hi Stanimir,

Many thanks for your response.

I followed option suggested by you
http://www.telerik.com/help/aspnet-ajax/using-radeditor-in-web-content-management-scenario.html         and

<telerik:RadHtmlField id="Content" FieldName="PublishingPageContent" AllowSpecialTags="true" AllowScripts="true" runat="server"></telerik:RadHtmlField>

however, it did not work for me.
When i add following code to embed video in telerik control and save/check-in the page, telerik rad editor control removes the <object> used to embed video.

 <object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="player" width="340" height="280">
                <param name="url" value="WindowsMedia.wmv" />
                <param name="src" value="WindowsMedia.wmv" />
                <param name="showcontrols" value="true" />
                <param name="autostart" value="true" />
</object>


Also i tried another with with <embed> tag as follows, however it did not work.
 <object width="380" height="220">
            <param name="movie" value="WindowsMedia.wmv"/>
            <param name="allowfullscreen" value="true" />
            <param name="allowscriptaccess" value="always" />
            <embed src="WindowsMedia.wmv" allowfullscreen="true" width="640" height="368"></embed>
        </object>



As I am suggesting this product to one of my client and would like to confirm few things from you

Does the above mentioned steps work for licensed version of the product?  [I am using "RadEditorMOSS_5_7_3_Trial" version]
Can i embed video in telerik Rad Editor control placed in page layout.?

Regards,
Ketan Gandhi








                    
0
Stanimir
Telerik team
answered on 03 Sep 2010, 12:40 PM
Hello ketan,

Here is the help article where you can find information on inserting Flash and Media files in RadEditor for MOSS: http://www.telerik.com/help/aspnet-ajax/allow-flash-media.html.

In order to help you further. I will need some additional information.
1. In what scenario are you using the control. Is it WebPart or WCM?
2. Provide me with the ConfigFile.xml and ToolsFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder.

I will use this in order to reproduce the issue on our test server.

Kind regards,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
ketan
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
ketan
Top achievements
Rank 1
Share this question
or