Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED Can Not Change Default Font Size in Editor
#1
HOW TO CHANGE DEFAULT EDITOR FONT SIZE

I worked through the gsconfig.php again to edit the default editor font-size. The editor options in gsconfig still do not seem to work as advertise.

This is what worked to set a new editor default font-size:
  1. Open admin>template>js>ckeditor>contents.css
  2. Find and then edit "font-size:" to what you'd like.
  3. Save contents.css
  4. Refresh.
I'll mark this resolved.

---
Hello,

I cannot increase the default font size in the WYSIWYG/Source Editor. 
I have also found that the advanced editor font defaults are not set in gsconfig.php

This is what I have done.

gsconfig.php 

I tried changing the Editor option for just the font size:

Code:
# WYSIWYG Editor Options
define('GSEDITOROPTIONS',
"fontSize_defaultLabel : '14px' ");

This did not work. I check this with the WYSIWYG toolbar "advanced" enabled and disabled.

The Default Font Label Code in the Wiki doesn't work out of the box either:
http://get-simple.info/wiki/how_to:edito...or_options

Code:
# WYSIWYG Editor Options
define('GSEDITOROPTIONS',"skin : 'v2',
enterMode: CKEDITOR.ENTER_P,
shiftEnterMode : CKEDITOR.ENTER_BR,
fontSize_defaultLabel : '11px',
font_defaultLabel : 'Arial',
font_names : 'Arial;Times New Roman;Verdana'
");

WYSIWYG advanced toolbar does engage when the option is selected with no Editor Options. With the 'v2' skin, the body of the editor disappears. Changing the skin to 'getsimple' gets back the body, but still no font defaults.

ckeditor

Edited the .css files skins in ckeditor-skins-getsimple. Did not work.
Editing the content.css file in ckeditor. Did not work.

On some of these attempts (gsconfig), I can see a larger font, but it keeps on going back to the default. Somewhere, the values seem to be getting overwritten to a default. Any ideas where/what file is controlling the font?

Thanks,

Patrick
Reply
#2
EXTRA BONUS! CHANGE SOURCE EDITOR DEFAULT FONT SIZE

  1. Open admin>template>ckeditor>skins>getsimple>editor.css
  2. Find .cke_skin_getsimple textarea.cke_source
  3. Change font-size: to desired value
  4. Save file
  5. Refresh
Reply
#3
or just create your own custom editor.css and stick it in your template folder, not sure if this is documented in the wiki.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)