public Editor(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory)
: base(viewContext, clientSideObjectWriterFactory)
{
ScriptFileNames.AddRange(new[] {
"telerik.common.js",
"telerik.list.js",
"telerik.combobox.js",
"telerik.draganddrop.js",
"telerik.window.js",
"telerik.editor.js"
});
DefaultToolGroup = new EditorToolGroup();
ClientEvents = new EditorClientEvents();
StyleSheets = new WebAssetItemGroup("default", false) { DefaultPath = WebAssetDefaultSettings.StyleSheetFilesPath };
Localization = new EditorLocalization();
Template = new HtmlTemplate();
new EditorToolFactory(DefaultToolGroup)
.Bold().Italic().Underline().Strikethrough()
.Separator()
.FontName()
.FontSize()
.FontColor().BackColor()
.Separator()
.JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
.Separator()
.InsertUnorderedList().InsertOrderedList()
.Separator()
.Outdent().Indent()
.Separator()
.FormatBlock()
.Separator()
.CreateLink().Unlink()
.Separator()
.InsertImage();
}