This project is read-only.

forum - Editor

Topics: Developer Forum, User Forum
Apr 13, 2011 at 10:37 AM


how can I implement the editor in forum posts/creating new treads so html, images etc. are possible?

Apr 13, 2011 at 3:17 PM

Hi Wiper,

In Forum.ascx, replace

<asp:TextBox ID="txtNewPostBody" runat="server" TextMode="MultiLine"></asp:TextBox>


<uc:HtmlEditor runat="server" ID="txtNewPostBody" Height="500" />

and add

<%@ Register Src="~/App_UserControls/Sections/HtmlEditor.ascx" TagPrefix="uc" TagName="HtmlEditor" %>

Under the control declaration at the top.


Apr 15, 2011 at 10:48 PM
Edited Apr 15, 2011 at 10:51 PM

Hi Bjorn

doesn't work...:(

also tried with

<%@ Register Src="~/SectionControls/HtmlEditor.ascx" TagPrefix="uc" TagName="HtmlEditor" %>

Apr 16, 2011 at 2:47 AM

Yes sorry, my section controls are in a different folder. Your code reference should work. Are you getting errors? Does the editor load but not save?

Apr 16, 2011 at 5:25 AM

Removed the line that was causing the error : 

<asp:RequiredFieldValidator runat="server" ID="valBody" ControlToValidate="txtBody" ErrorMessage="<%$Resources:Forum, ThreadErrorBodyMissing %>" Display="Dynamic" ValidationGroup="NewThread" />


now it's working... ;0)