/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param> protected void Page_Load(object sender, EventArgs e) { try { EditorOptions = (CKEditorOptions) Page.LoadControl("~/Providers/HtmlEditorProviders/DNNConnect.CKE/CKEditorOptions.ascx"); EditorOptions.IsHostMode = true; EditorOptions.CurrentPortalOnly = PortalOnly.Checked; EditorOptions.CurrentOrSelectedTabId = PortalSettings.ActiveTab.TabID; EditorOptions.CurrentOrSelectedPortalId = PortalSettings.PortalId; EditorOptions.DefaultHostLoadMode = 0; EditorOptions.ID = "CKEditor_Options"; OptionsPlaceHolder.Controls.Add(EditorOptions); if (Page.IsPostBack) { return; } SetLanguage(); } catch (Exception exception) { Exceptions.ProcessPageLoadException(exception); } }
/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param> protected void Page_Load(object sender, EventArgs e) { this.AddJavaScripts(); try { this.EditorOptions = (CKEditorOptions) this.Page.LoadControl("~/Providers/HtmlEditorProviders/CKEditor/CKEditorOptions.ascx"); this.EditorOptions.IsHostMode = true; this.EditorOptions.CurrentPortalOnly = this.PortalOnly.Checked; this.EditorOptions.CurrentOrSelectedTabId = this.PortalSettings.ActiveTab.TabID; this.EditorOptions.CurrentOrSelectedPortalId = this.PortalSettings.PortalId; this.EditorOptions.DefaultHostLoadMode = 0; this.EditorOptions.ID = "CKEditor_Options"; this.OptionsPlaceHolder.Controls.Add(this.EditorOptions); if (this.Page.IsPostBack) { return; } this.SetLanguage(); } catch (Exception exception) { Exceptions.ProcessPageLoadException(exception); } }
/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param> protected void Page_Load(object sender, EventArgs e) { this.AddJavaScripts(); try { this.EditorOptions = (CKEditorOptions) this.Page.LoadControl("~/Providers/HtmlEditorProviders/CKEditor/CKEditorOptions.ascx"); this.EditorOptions.IsHostMode = true; this.EditorOptions.CurrentPortalOnly = this.PortalOnly.Checked; this.EditorOptions.CurrentOrSelectedTabId = this.PortalSettings.ActiveTab.TabID; this.EditorOptions.CurrentOrSelectedPortalId = this.PortalSettings.PortalId; this.EditorOptions.DefaultHostLoadMode = 0; this.EditorOptions.ID = "CKEditor_Options"; this.OptionsPlaceHolder.Controls.Add(this.EditorOptions); if (Page.IsPostBack) { return; } this.SetLanguage(); } catch (Exception exception) { Exceptions.ProcessPageLoadException(exception); } }