Page 1 of 1

Global setting to make HTML wysiwyg editors taller in Admin?

Posted: Wed Aug 03, 2016 2:48 am
by NC Software
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.

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

Posted: Wed Aug 03, 2016 3:33 am
by mazhar
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.

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

Posted: Wed Aug 03, 2016 5:04 am
by NC Software
Thanks mazhar, I'll poke at it later, I'm talking about the editors in the admin for creating product descriptions, etc.

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

Posted: Wed Aug 03, 2016 5:18 am
by mazhar
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.

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

Posted: Wed Aug 03, 2016 5:44 am
by mazhar
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>

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

Posted: Wed Aug 03, 2016 9:02 am
by NC Software
MaxLength had to be removed, can't set in a Skin, set the Height to 400px and does what I wanted, thanks.

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

Posted: Wed Aug 03, 2016 10:28 pm
by mazhar
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.