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

[Solved] Flash object doesn't render

6 Answers 177 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Joris Poelmans
Top achievements
Rank 1
Joris Poelmans asked on 24 Jun 2009, 12:18 PM
Hello,

Problem
I'm having problems with embedding .SWF files into the RadEditor (version 5.4.1.0).

Situation
I'm able to pick a flash object and insert it into the Fieldcontrol. But the .SWF doesn't render in DISPLAY mode. When I go back into EDIT mode - the .SWF is being rendered correctly.

When I take a look with the IE developer toolbar I noticed that the OBJECT is encoded in a PRE element with RadEditorEncodedTag and "display:none".

What I've already tried?
- Added <property name="AllowScripts">True</property> in the ConfigFile.xml
- Added AllowSpecialTags attribute to the RadHtmlField like this...

<Telerik:RadHtmlField id="BasicContentNL" FieldName="BasicContentNL" DisplayWidth="100%" ConfigFile="/_layouts/FostPlusCW/RadEditor/ConfigFile.xml" ToolsFile="/_layouts/FostPlusCW/RadEditor/ToolsFile.xml" AllowSpecialTags="true" runat="server"></Telerik:RadHtmlField>

Information
- I'm using the RadHtml publishing Fieldcontrol
- MOSS Publishing environment
- IE7

6 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 25 Jun 2009, 10:04 AM
Hello Joris,

Unfortunately I was not able to reproduce the problem, could you please provide us with a step by step scenario of how to achieve the reported problem.

Thank you.

Greetings,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Joris Poelmans
Top achievements
Rank 1
answered on 25 Jun 2009, 10:48 AM
It's quite simple... I have a RadEditor Field control on a publishing page. I want to display an SWF object in it.

I did the following:
- add "AllowSpecialTags" attribute to the RadHmtlField
- set AllowScripts to true in the ConfigFile.xml

Still no help...The HtmlEditor strips out the flashobject when displaying.
0
Stanimir
Telerik team
answered on 25 Jun 2009, 12:29 PM
Hello Joris Poelmans,

Let me know if I understand the problem correctly. You can see the Flash, when you are in Edit mode and you are toggling between Design and Html mode of the RadEditor and you can see the HTML code of the flash object, when you are in Html mode of the RadEditor. The problem occurs after you save the page. The flash object is stripped.

If this is the case , this seems to be yet another problem, caused by the MOSS content filter. When you submit the page, MOSS will validate it and automatically make changes if the content is not valid. You can verify this by trying to enter the same content with the original SharePoint rich text editor.

We have not been able to find a workaround for this behavior yet.


Kind regards,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Gil Canare
Top achievements
Rank 1
answered on 06 Aug 2009, 11:02 PM
I believe we are having a similar issue here.  In 5.3.2.0 we were able to turn on the AllowScripts in the ConfigFile and AllowSpecialTags in the layout to give people the ability to embed JavaScript code directly into a HtmlField.  When we upgraded to 5.4.1.0, we left the settings the same and are unable to insert JavaScript into content anymore. 

Example 1:
- Add the following code to a page with existing content <script langauge="JavaScript" type="text/javascript">alert('Hello World');</script>
- If you click between Design / Preview / HTML, the code will stay there as it was written. 
- Once you click on Save Page / Check In Page, the <script> section is removed from the HTML.

Example 2:
- Add the following code to a page with existing content <a href="#" onclick="javascript:alert('Hello World');">Click here</a>>
- If you click between Design / Preview / HTML, the code will stay there as it was written. 
- Once you click on Save Page / Check In Page, the OnClick parameter is removed from the HTML.

Both of these examples worked in 5.3.2.0 but fail in 5.4.1.0.  I have doublechecked the AllowScripts and AllowSpecialTags parameters and  nothing appears to fix the issue.

Please advise.
0
Stanimir
Telerik team
answered on 07 Aug 2009, 07:21 AM
Hello Gil,

Indeed there is problem with the RadEditor for MOSS 5.4.1 and flash objects. However this issue is fixed in the latest version of the control, which is 5.5.0. Please upgrade to it. You can find instructions in the following help article http://www.telerik.com/help/aspnet-ajax/upgrade_to_a_newer_version_of_radeditor_for_moss.html


Regards,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Gil Canare
Top achievements
Rank 1
answered on 07 Aug 2009, 01:54 PM
I ran the same tests in a VM with 5.5.0.0 and the error still exists.  No changes to the config settings have been able to fix the issue. 
Tags
WebParts for SharePoint
Asked by
Joris Poelmans
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Joris Poelmans
Top achievements
Rank 1
Gil Canare
Top achievements
Rank 1
Share this question
or