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

MOSS wpresources\RadEditorSharePoint files overwritten when SharePoint patched

1 Answer 49 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 20 Oct 2011, 10:26 PM
I have observed some very bad behavior with the Telerik RadMossEditor. In the Config.xml file I need to listen for the event OnClientLoad as follows.

<property name="OnClientLoad">mossEditorHandleClientLoaded</property> 

I've added my function mossEditorHandleClientLoaded into MOSSEditorTools.js everything works great. That is until our sysadmin  applied some MS Sharepoint updates. After running the SharePoint Configuration Wizard all of the files that I customized were overwritten with the stock ones in the .WSP installer package of this component, including the ToolsFile.xml which has my preferred button configuration for the edit control. 

As far as I can tell there is no other way to wire this up above that to modify those files in that directory which is the practice that Telerik's documentation recommends. This seems like a very brittle and broken approach, is there a better way?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 21 Oct 2011, 08:08 AM
Hello Ian,


When the RadControlsSP.wsp is retracted from the farm all the default files in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/x.x.x.0__1f131a624888eeed/Resources/ folder are deleted. When the solution is deployed all the default files are added or overwritten.

Unfortunately currently the only solution of your problem is to backup your custom files (or the entire Resources folder), so you can restore them easy on an upgrade. Keep in mind that in the upcoming new versions the default configuration files might be different. So the best approach on upgrade is to merge the new default files with the customizations you make.

I am sure that this information was provided in our online help, however currently I could not find it. I contacted our documentation team and this will be fixed ASAP.

Regards,
Stanimir
the Telerik team
Learn how the Telerik controls can be integrated in SharePoint 2007/2010 from this resource. To watch them in action, explore our online SharePoint 2010 and SharePoint 2007 demo sites.
Tags
WebParts for SharePoint
Asked by
Ian
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or