+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Problem adding applet tag to Generic Content (RadEditor)

Problem adding applet tag to Generic Content (RadEditor)

3 posts, 0 answered
  1. Andrew
    Andrew avatar
    47 posts
    Registered:
    22 May 2009
    07 Nov 2009
    Link to this post
    Hi

    I'm trying to add an applet tag into the HTML view of RadEditor but when I save my changes it screws up the page. When I return to the edit screen the Edit Mode has switched from Overlay to Classic and the browser is reporting javascript errors. I'm unable to go back in and edit the generic content (the Edit link doesn't work) and have to delete the control. The html is:
      <applet code="sample.class" codebase="/JavaFiles/" width="300" height="450"></applet>

    I have tried using an object tag instead but get problems with the <param> tags getting HTML encoded by RadEditor. This is the object tag code I am trying:
          <!--[if !IE]>-->
          <object classid="java:sample.class"
                  type="application/x-java-applet"
                  height="300" width="450" >
            <param name="codebase" value="/JavaFiles/" />
          <!--<![endif]-->
            <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
                    height="300" width="450" >
              <param name="codebase" value="Applets" />
              <param name="code" value="sample" />
            </object>
          <!--[if !IE]>-->
          </object>
          <!--<![endif]-->


    What's the best way to embed a java applet inside generic content/RadEditor?

    Many thanks
    Andrew
  2. Andrew
    Andrew avatar
    47 posts
    Registered:
    22 May 2009
    08 Nov 2009
    Link to this post
    I should have added that I'm using SF 3.6 (build 1936).
  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Nov 2009
    Link to this post
    Hello Andrew,

    Thank you for using our services.

    Can you try to download the external templates for your version of Sitefinity. Then take the ~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx and turn off all content filters of the RadEditor:
            <telerik:RadEditor
    runat="server"
    ID="textEditor"
    ContentAreaCssFile="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css"
    ToolsFile="~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml"   
    Skin="WebBlue"   
    NewLineBr="False"
    Height="360px"
    Width="98%"
    AllowScripts="true"
    ContentFilters="None">

     Then map the external template of the Generic Content control with the following config line in the controls config file and restart the website:
    <viewSettings hostType="Telerik.Cms.Engine.WebControls.Design.GenericContentDesigner" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx" />

    More information on external templates can be found here.

    Regards,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
3 posts, 0 answered