Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Editor in MessageBoard web part View modes: 
User avatar
Member
Member
luyolo.mhlauli-nmmu.ac - 4/24/2012 2:29:59 AM
   
Editor in MessageBoard web part
I want my messageboard web part to use the html editor in the message textbox(txtMessage) .

So I updated the CMSModules\MessageBoards\Controls\Messages\MessageEdit.ascx file and I included the following javascript above the Panel (pnlMessageEdit).

<script src="../../../../CMSAdminControls/FCKeditor/fckeditor.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload = function () {
var oFCKeditor = new FCKeditor('<%=txtMessage.ClientID%>','','','Basic','');

oFCKeditor.BasePath = "/CMSAdminControls/FCKEditor/";
oFCKeditor.ReplaceTextarea();
}
</script>

This works but the problem is when I have two MessageBoard webparts.It only shows the html editor in the second webpart. Can anyone help.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 4/26/2012 8:28:30 AM
   
RE:Editor in MessageBoard web part
Hi,

instead of a default text box control you can try to use:

<cms:CMSHtmlEditor ID="editor" runat="server" />

Of course you will need to modify the code behind to cooperate with this new control.

It would be better if you created a clone of message board web part and related controls. Then you changes will not be lost in case you apply the hotfix.

Best regards,
Ivana Tomanickova