Monday, September 21, 2009

Add CssFiles, EditModes, ToolFiles and DialogHandler to Telerik RadEditorUrl

Scenario:
When working with Telerik's RadEditor, one may need to set certain properties for the control such as ToolsFile, EditModes, CssFiles, DialogHandlerUrl etc.. Its handy to have the below:

Code:

RadEditor.ToolsFile = "~/_layouts/[FolderName]/[ToolsXmlFileName].xml";
RadEditor.EditModes = EditModes.Html | EditModes.Design;
RadEditor.CssFiles.Add("~/_layouts/[FolderName]/CSS/PageLayouts/RadEditorCss.css");
RadEditor.DialogHandlerUrl = "~/Telerik.Web.UI.DialogHandler.axd";

No comments:

Post a Comment