TinyMCE default font?

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:

TinyMCE default font?

Post by NC Software » Wed Aug 03, 2016 10:01 am

Where is your default font set for the tinymce editor? The 8-10px font size is crazy small for this day and age of computers/resolutions. I'd like to bump it up to about 14px to make readability better in the admin/product pages, etc.

Also, please update tinymce, it seems yours is significantly out of date by about 4 years.
Neal Culiner
NC Software, Inc.

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

Re: TinyMCE default font?

Post by Naveed » Thu Aug 04, 2016 1:28 am

The TinyMCE editor is initialized in the WebControls/HtmlEditor.cs under CommerceBuilder.UI project. In the OnLoad function you can configure the default font-size etc. Please add the following javascript settings where we are building the "initScript":

initScript.AppendLine("setup : function(ed) { ed.onInit.add(function(ed) { ed.getDoc().body.style.fontSize = '14px'; }); },");

add it just below the line where we are configuring "theme" and "plugins".

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

Re: TinyMCE default font?

Post by NC Software » Thu Aug 04, 2016 1:38 am

Thanks Naveed, I'll give that a shot. I suggest considering making your default larger going forward, that's really small font in this era what it's currently set to.
Neal Culiner
NC Software, Inc.

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

Re: TinyMCE default font?

Post by NC Software » Thu Aug 04, 2016 2:02 am

MUCH better! Works perfect, thanks again.
Neal Culiner
NC Software, Inc.

Post Reply