Flash object doesn't render

7 posts, 0 answers
  1. Joris Poelmans
    Joris Poelmans avatar
    2 posts
    Member since:
    Jun 2009

    Posted 24 Jun 2009 Link to this post

    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
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 25 Jun 2009 Link to this post

    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.

  3. Joris Poelmans
    Joris Poelmans avatar
    2 posts
    Member since:
    Jun 2009

    Posted 25 Jun 2009 Link to this post

    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.
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 25 Jun 2009 Link to this post

    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.
  5. Gil Canare
    Gil Canare avatar
    3 posts
    Member since:
    Feb 2009

    Posted 06 Aug 2009 Link to this post

    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.
  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 07 Aug 2009 Link to this post

    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.
  7. Gil Canare
    Gil Canare avatar
    3 posts
    Member since:
    Feb 2009

    Posted 07 Aug 2009 Link to this post

    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. 
Back to Top