Hi,
I need some help in customizing the RADEditor toolbar I have on a masterpage. Below are the steps I did to get the control to appear on the page
1) Registered the assembly in the masterpage
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2008.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"%>
2)Added the control to the page:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadEditor ID="RadEditor1" runat="server" Width="500" Height="500" ></telerik:radeditor>
The RADEditor now appears on the page. However it has all the toolbar icons appearing. I followed the steps in here and created a new toolfile with only the icons I need to appear. However when I refresh the page containing the control I get the following error:
My custom file is located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources
Which happens to be the location where the default RAD files are located.
Can anyone help with this?
I need some help in customizing the RADEditor toolbar I have on a masterpage. Below are the steps I did to get the control to appear on the page
1) Registered the assembly in the masterpage
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2008.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"%>
2)Added the control to the page:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadEditor ID="RadEditor1" runat="server" Width="500" Height="500" ></telerik:radeditor>
The RADEditor now appears on the page. However it has all the toolbar icons appearing. I followed the steps in here and created a new toolfile with only the icons I need to appear. However when I refresh the page containing the control I get the following error:
[DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\~\ToolsFile_custom.xml'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +193
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1162
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +64
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +77
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +54
System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +74
System.Threading.CompressedStack.runTryCode(Object userData) +70
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +108
System.Xml.XmlTextReaderImpl.OpenUrl() +186
System.Xml.XmlTextReaderImpl.Read() +208
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +112
System.Xml.XmlDocument.Load(XmlReader reader) +108
System.Xml.XmlDocument.Load(String filename) +87
Telerik.Web.UI.RadEditor.get_ToolsFileContent() +183
Telerik.Web.UI.ToolsFileLoader.LoadColors(EditorColorCollection colors) +55
Telerik.Web.UI.RadEditor.LoadToolsFile(Boolean loadOnlyEmptyCollections) +154
Telerik.Web.UI.RadEditor.set_ToolsFile(String value) +55
T_RadEditor_ToolsFile_61.SetProperty(Object , Object ) +86
System.Web.Util.FastPropertyAccessor.SetProperty(Object target, String propName, Object val) +55
System.Web.UI.PropertyMapper.SetMappedPropertyValue(Object obj, String mappedName, Object value) +36
System.Web.UI.ControlBuilder.SetSimpleProperty(SimplePropertyEntry entry, Object obj) +94
[HttpException (0x80004005): '~/ToolsFile_custom.xml' could not be set on property 'ToolsFile'.]
System.Web.UI.ControlBuilder.SetSimpleProperty(SimplePropertyEntry entry, Object obj) +210
System.Web.UI.ControlBuilder.InitSimpleProperties(Object obj) +157
System.Web.UI.ControlBuilder.InitObject(Object obj) +162
System.Web.UI.ControlBuilder.BuildObjectInternal() +238
System.Web.UI.ControlBuilder.BuildObject() +4
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +403
System.Web.UI.ControlBuilder.InitObject(Object obj) +342
System.Web.UI.ControlBuilder.BuildObjectInternal() +238
System.Web.UI.ControlBuilder.BuildObject() +4
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +403
System.Web.UI.TemplateBuilder.InstantiateIn(Control container) +302
Microsoft.SharePoint.WebControls.TemplateBasedControl.CreateChildControls() +279
CKS.EBE.WebControls.BaseForm.CreateChildControls() +15
System.Web.UI.Control.EnsureChildControls() +87
Microsoft.SharePoint.WebControls.TemplateBasedControl.OnLoad(EventArgs e) +65
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
My custom file is located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources
Which happens to be the location where the default RAD files are located.
Can anyone help with this?