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

Error for skin after updating telerik editor

3 Answers 130 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Ankit
Top achievements
Rank 1
Ankit asked on 11 Jan 2013, 06:39 AM

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




3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 11 Jan 2013, 03:40 PM
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.

0
Ankit
Top achievements
Rank 1
answered on 15 Jan 2013, 08:39 AM
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
0
Rumen
Telerik team
answered on 16 Jan 2013, 11:27 AM
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.

Tags
Sharepoint Integration
Asked by
Ankit
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ankit
Top achievements
Rank 1
Share this question
or