ASPX templates
Version 4.x > ASPX templates > Set toolbar for editable region in ASPX template View modes: 
User avatar
Member
Member
random0xff - 5/24/2009 10:16:09 AM
   
Set toolbar for editable region in ASPX template
Is there any way to set the FCKEditor toolbar I created for an editable region in my ASPX template? I understand the webparts have a special property for that, but I don't use the webpart.

Thanks!

User avatar
Kentico Support
Kentico Support
kentico_radekm - 5/25/2009 10:35:02 AM
   
RE:Set toolbar for editable region in ASPX template
Hello.

You can use RegionType property for CMSEditableRegion control.
E.g. <cms:CMSEditableRegion ID="CMSEditableRegion1" runat="server" RegionType="HTMLEditor"/>

Best Regards,
Radek Macalik

User avatar
Member
Member
random0xff - 5/28/2009 3:27:33 PM
   
RE:Set toolbar for editable region in ASPX template
No, what I really meant is the actual toolbar and buttons in the editor (bold/italic/etc). I can't really find out how to do that in ASPX templates with EditableRegion.

User avatar
Member
Member
seanbun-gmail - 6/3/2009 2:26:11 AM
   
RE:Set toolbar for editable region in ASPX template
You want to set the bold/italic function by default?

you may need to see the fckeditor config file (fckconfig.js) in the CMSAdminControls/FCKEditor folder.

Cheers,
matt
@seanbun

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 6/3/2009 6:05:16 AM
   
RE:Set toolbar for editable region in ASPX template
Hello,

You can specify toolbar set into HtmlAreaToolbar toolbar property, e.g.:

<cms:CMSEditableRegion runat="server" ID="MainContentText" RegionTitle="Main text"
DialogHeight="320" RegionType="HtmlEditor" HtmlAreaToolbar="SimpleEdit" />

You can specify custom toolbar sets in ~\CMSAdminControls\FCKeditor\fckconfig.js file.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
random0xff - 6/11/2009 4:27:40 PM
   
RE:Set toolbar for editable region in ASPX template
That's what I needed, thanks!

User avatar
Member
Member
henry - 6/30/2009 7:55:14 PM
   
RE:Set toolbar for editable region in ASPX template
I'm pretty new to Kentico, so I might be missing something really simple, but I can't seem to add my custom toolbar set properly. I want one that only allows an image to be edited (along with some other buttons), so I added this into the fckconfig.js file;


FCKConfig.ToolbarSets["ImageOnly"] = [
['Source', '-', 'Preview'],
['Undo', 'Redo'],
['Image']
] ;


And for the control itself on the .aspx;


<cms:CMSEditableRegion ID="WelcomePanel" runat="server" RegionType="HtmlEditor" RegionTitle="Welcome Panel" HtmlAreaToolbar="ImageOnly" />


Saved the .js and the .aspx, but when I load the page it keeps telling me "Toolbar set 'ImageOnly' doesn't exist". Are there any other steps I need to take?

Thanks in advance,

Henry

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 7/2/2009 6:59:43 AM
   
RE:Set toolbar for editable region in ASPX template
Hi,

Could you please try to delete your browser cache? This should help.

Thank you.

Best Regards,
Miroslav Remias

User avatar
Member
Member
henry - 7/2/2009 4:24:29 PM
   
RE:Set toolbar for editable region in ASPX template
Cool, it works now - I swear I did clear it before, maybe it just needed a restart to remind itself.

Thanks, keep up the good work!

User avatar
Member
Member
henry - 7/2/2009 5:18:52 PM
   
RE:Set toolbar for editable region in ASPX template
Just another question I've come across just now, is it possible to use different HTMLAreaToolbars on a single template? I've set a few different types on the different editable regions on the template but only the first setting seems to be set on all of them.

I looked in the CMS Controls guide for Kentico 4.0 to see if I could answer my own question, but it doesn't seem to say whether this is possible or not.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 7/11/2009 1:47:50 PM
   
RE:Set toolbar for editable region in ASPX template
Hi Henry,

It is possible, but only if you use inline toolbars, i.e. if you set following attribute for editable region: HtmlAreaToolbarLocation="In"

Best Regards,

Martin Dobsicek