/// <summary> /// Page initialization handler. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> protected void Page_Init(object sender, EventArgs e) { // create editor based on administrator's settings this._editor = YafContext.Current.EditorModuleManager.GetEditorInstance(YafContext.Current.BoardSettings.ForumEditor); // add editor to the page this.EditorLine.Controls.Add(this._editor); }
/// <summary> /// The on init. /// </summary> /// <param name="e"> /// The e. /// </param> protected override void OnInit(EventArgs e) { // get the forum editor based on the settings this._forumEditor = this.PageContext.EditorModuleManager.GetEditorInstance(this.PageContext.BoardSettings.ForumEditor); this.EditorLine.Controls.Add(this._forumEditor); base.OnInit(e); }
/// <summary> /// The on init. /// </summary> /// <param name="e"> /// The e. /// </param> protected override void OnInit([NotNull] EventArgs e) { // Quick Reply Modification Begin this._quickReplyEditor = new BasicBBCodeEditor(); this.QuickReplyLine.Controls.Add(this._quickReplyEditor); this.QuickReply.Click += this.QuickReply_Click; this.Pager.PageChange += this.Pager_PageChange; // CODEGEN: This call is required by the ASP.NET Web Form Designer. this.InitializeComponent(); base.OnInit(e); }
/// <summary> /// The on init. /// </summary> /// <param name="e"> /// The e. /// </param> protected override void OnInit(EventArgs e) { // since signatures are so small only allow YafBBCode in them... this._sig = new BBCodeEditor(); this.EditorLine.Controls.Add(this._sig); this.save.Click += this.Save_Click; this.cancel.Click += this.cancel_Click; // CODEGEN: This call is required by the ASP.NET Web Form Designer. InitializeComponent(); base.OnInit(e); }
/// <summary> /// The get message flags. /// </summary> /// <returns> /// The method returns message flags. /// </returns> private int GetMessageFlags() { BaseForumEditor _forumEditor = this.PageContext.EditorModuleManager.GetEditorInstance(this.PageContext.BoardSettings.ForumEditor); var topicFlags = new MessageFlags(); topicFlags.IsHtml = _forumEditor.UsesHTML; topicFlags.IsBBCode = _forumEditor.UsesBBCode; topicFlags.IsPersistent = false; // Bypass Approval if Admin or Moderator. topicFlags.IsApproved = this.PageContext.IsAdmin; return(topicFlags.BitValue); }