private void InitializeEditor() { config = TinyMceConfiguration.GetConfig(); Editor.AdvancedBlockFormats = config.AdvancedFormatBlocks; Editor.AdvancedStyles = SiteUtils.BuildStylesListForTinyMce(); Editor.TemplatesUrl = SiteUtils.GetNavigationSiteRoot() + "/Services/TinyMceTemplates.ashx?cb=" + Guid.NewGuid().ToString(); //cache busting guid Editor.EmotionsBaseUrl = Editor.ResolveUrl("~/Data/SiteImages/emoticons/tinymce/"); Editor.DialogType = config.DialogType; Editor.Height = editorHeight; Editor.Width = editorWidth; Editor.AdvancedSourceEditorWidth = config.AdvancedSourceEditorWidth; Editor.AdvancedSourceEditorHeight = config.AdvancedSourceEditorHeight; Editor.AdvancedToolbarLocation = config.AdvancedToolbarLocation; Editor.AdvancedToolbarAlign = config.AdvancedToolbarAlign; Editor.AdvancedStatusBarLocation = config.AdvancedStatusBarLocation; if (setFocusOnStart) { Editor.AutoFocus = true; } Editor.BasePath = WebConfigSettings.TinyMceBasePath; Editor.Skin = WebConfigSettings.TinyMceSkin; SetToolBar(); }
private void InitializeEditor() { config = TinyMceConfiguration.GetConfig(); Editor.EmotionsBaseUrl = Editor.ResolveUrl("~/Data/SiteImages/emoticons/tinymce/"); Editor.Height = editorHeight; Editor.Width = editorWidth; if (setFocusOnStart) { Editor.AutoFocus = true; } Editor.BasePath = WebConfigSettings.TinyMceBasePath; //Editor.Skin = WebConfigSettings.TinyMceSkin; SetToolBar(); }