forum - Editor

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

Hi

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

Apr 13, 2011 at 2:17 PM

Hi Wiper,

In Forum.ascx, replace

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

with

<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.

Bjorn

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

Hi Bjorn

doesn't work...:(

also tried with

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

Apr 16, 2011 at 1: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 4: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)

 

thanks!