Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Bugs & Issues > Problem adding applet tag to Generic Content (RadEditor)

Problem adding applet tag to Generic Content (RadEditor)

  • Andrew avatar

    Posted on Nov 7, 2009 (permalink)

    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

    Reply

  • Andrew avatar

    Posted on Nov 8, 2009 (permalink)

    I should have added that I'm using SF 3.6 (build 1936).

    Reply

  • Radoslav Georgiev Radoslav Georgiev admin's avatar

    Posted on Nov 9, 2009 (permalink)

    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.

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Bugs & Issues > Problem adding applet tag to Generic Content (RadEditor)