Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Avoid Multiple HTML editor Toolbar View modes: 
User avatar
Member
Member
Aashish - 8/6/2011 6:45:42 AM
   
Avoid Multiple HTML editor Toolbar
I am using a customized webpart that contains multiple editabletext and editable image webpart.

Design is as follows:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="4Rows.ascx.cs" Inherits="CMSWebParts_TAC_4Rows" %>
<%@ Register Src="../Text/editabletext.ascx" TagName="editabletext" TagPrefix="uc1" %>
<%@ Register Src="../Text/editableimage.ascx" TagName="editableimage" TagPrefix="uc2" %>
<uc1:editabletext ID="editableHeading" runat="server" />
<uc1:editabletext ID="editableSubHeading" runat="server" RegionType="HtmlEditor" />
<uc2:editableimage ID="editableImage" runat="server" DisplaySelectorTextBox="False" />
<uc1:editabletext ID="editableContent" runat="server" RegionType="HtmlEditor" />
<uc1:editabletext ID="editableLinks" runat="server" RegionType="HtmlEditor" />


Now, Problem is, on adding this webpart in kentico page, multiple HTML editor toolbars are there.(one for each editabletext webpart).

I want all editabletext webparts to be controlled by a single HTML editor toolbar (as in case of using multiple editabletext webparts,default)

User avatar
Member
Member
Aashish - 8/8/2011 12:41:31 AM
   
RE:Avoid Multiple HTML editor Toolbar
Please suggest..... i m waiting....

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/8/2011 1:14:44 AM
   
RE:Avoid Multiple HTML editor Toolbar
Hi,

you could use following code - it should ensure common FCK editor toolbar:

<cms:CMSEditableRegion runat="server" ID="MainContentText" RegionTitle="Main text"
DialogHeight="320" RegionType="HtmlEditor" HtmlAreaToolbarLocation="Out:FCKToolbar"/>


You do not need to register a web part in your code and use a control directly. HtmlAreaToolbarLocation is used for setting location of toolbar.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
Aashish - 8/8/2011 2:03:53 AM
   
RE:Avoid Multiple HTML editor Toolbar
Thanks kentico_ivanat

It is working fine now....