Global setting to make HTML wysiwyg editors taller in Admin?

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Global setting to make HTML wysiwyg editors taller in Admin?

Post by NC Software » Wed Aug 03, 2016 2:48 am

Is there a single setting that controls the size of the WYSIWYG editors in Admin such as product configs so I can make them taller and more usable without having to go full screen? I haven't looked yet but asking if anyone else knows before I hunt this down.
Neal Culiner
NC Software, Inc.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Global setting to make HTML wysiwyg editors taller in Admin?

Post by mazhar » Wed Aug 03, 2016 3:33 am

Have you tried increasing width of cb:HtmlEditor control? We already have a custom control that can quickly get you a server side WYSIWYG editor. Please check add/edit product page.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Global setting to make HTML wysiwyg editors taller in Admin?

Post by NC Software » Wed Aug 03, 2016 5:04 am

Thanks mazhar, I'll poke at it later, I'm talking about the editors in the admin for creating product descriptions, etc.
Neal Culiner
NC Software, Inc.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Global setting to make HTML wysiwyg editors taller in Admin?

Post by mazhar » Wed Aug 03, 2016 5:18 am

Yes within admin you can check example of inline WYSIWYG editor big enough to not need full screen. For example Admin/Products/EditProduct.aspx check the summary and extended description. They make use of cb:HtmlEditor control which is a server side wrapper over WYSIWYG(tinymce). You can control its size by setting height/width properties and toolbar mode using ToolbarSet property.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Global setting to make HTML wysiwyg editors taller in Admin?

Post by mazhar » Wed Aug 03, 2016 5:44 am

Neal regarding Global setting I think you can accomplish that by using Admin theme's Skin file. All you need is to add a generic style for all cb:HtmlEditors with default width, height and toolbar set. For example give a try by adding this to your admin theme's skin file.

Updated code snippet and removed MaxLength

Code: Select all

<cb:HtmlEditor runat="server" Width="780" Height="200px" ToolbarSet="Inline"></cb:HtmlEditor>

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Global setting to make HTML wysiwyg editors taller in Admin?

Post by NC Software » Wed Aug 03, 2016 9:02 am

MaxLength had to be removed, can't set in a Skin, set the Height to 400px and does what I wanted, thanks.
Neal Culiner
NC Software, Inc.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Global setting to make HTML wysiwyg editors taller in Admin?

Post by mazhar » Wed Aug 03, 2016 10:28 pm

OK great! I just posted the snippet without testing the change. Now that you have it working I made updates to above comment and removed MaxLength attribute.

Post Reply