Jump to content

how to changeTinyMce default font size ?


Recommended Posts

Hello all.

 

In backoffice when adding product description short and long then the standard fontsize is 8px or 10px.

I would like to have it standard starting at 12px as that is the fontsize i use most for my description.

I have been looking in the tinyMce .css files but could not find the solution there.

I probably overlooked it but maybe someone can poit me in the right direction.

 

Please see the attached screenshot.

 

Best regards,

Shlomi

Link to comment
Share on other sites

Hello Shlomi,

 

Here is what you should do to change the DEFAULT font size in the textarea shown in the editor:

In the content.css file, for the advanced theme, you add p and div and increased the font size.

body, td, pre, p, div {color:#000; font-family:Lucida Grande, Verdana, Helvetica, sans-serif; font-size:16px; margin:8px;}

You add the line below as well;

.mceContentBody p { font-size: 1.2em !important; }/* FF requires a important here */

This seemed to catch the "default font size", but there are still catches. 1. do not use the same filename for content.css and your sites css as listed in the content_css init section. 2. Watch out for existing content with spans, and other types of formatted content.

Kind regards

Link to comment
Share on other sites

  • 7 months later...
×
×
  • Create New...