I made a custom control which incorporates the RadEditor. So I end up with a dll (the custom control) which displays the RadEditor control, AND I have to display one set of buttons or another in the RadEditor based on the user's permissions. I have been able to make the ToolsFile an embedded resource, but the RadEditor throws an ArgumentException when it tries to use the file.
All of this is working fine if I set the RadEditor1.ToolsFile string like this
I have to make the ToolsFile an embedded resource so that the files travel w the dll where ever it goes. I embedded the file and the custom control works fine in the website except that the RadEditor throws an error when it tries to load the ToolsFile: error message = illegal characters in string
Belowe is how I call the ToolsFile in that scenario. It seems to me that the RadEditor is throwing an error when it shouldn't. I use this same method to set an ImageUrl for an asp:Image and it works fine. Question: How can I access the path to a RadEditor ToolsFile which is an embedded resource in a custom control.
RadEditor1.ToolsFile = this.Page.ClientScript.GetWebResourceUrl(typeof (lbWidgets.RootResources), "lbWidgets.RootResources.CourseAuthorTools.xml");