Error for skin after updating telerik editor

4 posts, 0 answers
  1. Ankit
    Ankit avatar
    6 posts
    Member since:
    Dec 2012

    Posted 11 Jan 2013 Link to this post

    HI,

    I want to use 'outlook' skin for my radsharepointeditor provided by telerik control. FYI, 

    For certain controls, we are already using our custom skins. 


    I have already put the 

    Telerik.Web.UI.Skins.dll in gac . But I am getting following error. 



    Telerik.SharePoint.MOSSRadEditor with ID='ctl00' was unable to find an embedded skin with the name 'Outlook'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false.


    Default skin is working fine as it is already available in telerik.web.ui dll.

    How can I resolve this error, as you know that we are using Radhtmlfield and we all know that skin control is only applicable to telerik editor control. We are using WCM option.

    For more information, Please find web.config lines

    this is for mosseditor to redirect to 3.5 version as per the help document provided by telerik control
     <dependentAssembly>
            <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4"/>
            <bindingRedirect oldVersion="1.0.0.0-2008.3.1314.20" newVersion="2012.3.1205.35"/>
          </dependentAssembly>
      <add key="Telerik.Editor.EnableEmbeddedSkins" value="True" />
        <add key="Telerik.Editor.Skin" value="Outlook" />


    for certain controls we are using our own skin assembly
    <add key="Telerik.Web.SkinsAssembly" value="Ecm360.Utilities.SkinResources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=E1998016F025A868"/>

    Do we have to do any safecontrol or assembly entry for telerik.web.ui.skin.dll as no where in the help document?

    Please provide us the solution asap.

    Thanks,
    Ankit Trivedi




  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 11 Jan 2013 Link to this post

    Hi,

    You should add both Telerik.Web.UI.Skins.dll and Telerik.Web.UI.dll assemblies from bin35 folder to the GAC. Once you do that open the \inetpub\wwwroot\wss\VirtualDirectories\80\web.config file and add the following entries in it:

    <SafeControl Assembly="Telerik.Web.UI, Version=2012.x.xxx.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" />
    <SafeControl Assembly="Telerik.Web.UI.Skins, Version=2012.x.xxx.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.Design" TypeName="*" Safe="True" />

    and

    <dependentAssembly>
    <assemblyIdentity name="RadEditorSharePoint" publicKeyToken="1f131a624888eeed" culture="neutral" />
    <bindingRedirect oldVersion="1.0.0.0-5.8.15.0" newVersion="5.8.15.0" />
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" culture="neutral" />
    <bindingRedirect oldVersion="1.0.0.0-2012.x.xxx.35" newVersion="2012.x.xxx.35" />
    </dependentAssembly>

    After that open the \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.x.xx.0__1f131a624888eeed\Resources\ConfigFile.xml and ListConfigFile.xml files and set <property name="Skin">Outlook</property>

    The final steps is to delete the browser cache and make iisreset. Load the page with RadEditor for MOSS in the browser and test it.

    Here is a video demonstrating how to enable the Hay skin: http://screencast.com/t/NH62nVU4Hd.

    Kind regards,
    Rumen
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.


  3. Ankit
    Ankit avatar
    6 posts
    Member since:
    Dec 2012

    Posted 15 Jan 2013 Link to this post

    Hi,

    It was not working even after performing all above steps.
    When I comment following lines, it started working

    <!--<add key="Telerik.Web.SkinsAssembly" value="Ecm360.Utilities.SkinResources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=E1998016F025A868"/>-->



    Can I not use my own skin assmebly for other controls if I use telerik.web.ui.skins.dll?

    Previously we have added our own button in radeditor toolbar. But now images are not coming for those two buttons.
    We have use following css for displaying images on those button. But now it is not showing those images
    <style>
    .rade_tool .Report{background-image: url( ../Images/Reports.GIF);}
    .rade_tool .FullScreenMode{background-image: url( ../Images/EditorFullScreen.gif);}
    </style>
    FYI , For htmlfield we are using configfile location of common folder not wpresoruce of editor.
    Please provide resolution asap.

    Thanks,
    Ankit Trivedi
  4. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 16 Jan 2013 Link to this post

    Hello,

    I am afraid that it is not possible to use two different skins dlls for styling the Telerik controls, because RadEditor uses many Telerik controls inside its dialogs (see this article) and the problem with the custom assembly is due to that. My suggestion is to use the solution provided in my first post if you want to change the default skin of RadEditor.

    As to the toolbar icons, try to replace

    <style>
    .rade_tool .Report{background-image: url( ../Images/Reports.GIF);}
    .rade_tool .FullScreenMode{background-image: url( ../Images/EditorFullScreen.gif);}
    </style>

    <style type="text/css">
    .reTool .Report
    {
       background-image: url(../Images/Reports.GIF);
    }
    .reTool .FullScreenMode
    {
       background-image: url(../Images/EditorFullScreen.gif);
    }


    Please, also note that the support of RadEditor for MOSS is discontinued as explained in this article: RadEditor for MOSS (SharePoint 2007) Discontinued as of Q2 2012.

    Best regards,
    Rumen
    the Telerik team

    Consider using RadControls for ASP.NET AJAX (built on top of the ASP.NET AJAX framework) as a replacement for the Telerik ASP.NET Classic controls, See the product support lifecycle here.

Back to Top