By Steady on
My theme has a font size of 14pt which looks nice. It is easy to read etc.
I use ckeditor as my wysiwg editor when writing and creating articles. The trouble is, the font size when editing and writing articles is way too small for me to comfortably read. It is more like 10pt.
I have spent an hour or two trying to find a way to increase the font size of the text when writing and/or editing something in the input form.
I don't know if I can add a line of css to my local.css file or if I need to hack into the ckeditor files and change a setting there.
I have been unable to get the text any larger in the edit screen of ckeditor.
Can anyone help? Please.
Thanks.
Comments
I found the answer
I found the answer myself.
You have to edit the ckeditor.config.js file.
In there is a line that you add some css into. It starts config.extraCss =
Comments are in there about what to do.
Adios
Font size inside ckeditor HOW TO
Ok would like to specify it more, because I was looking for solution for long time:
Open ckeditor.config.js from sites/all/modules/ckeditor
Find
config.extraCss = ' ';
and replace by new one string, for example
config.extraCss = "body{font-size:1.3em;}";
Save
Enjoy it
Avoid editing the original file
I don't know how things were at the time of this thread but now on the ckeditor module configuration page under your text profile "css" (/admin/config/content/ckeditor/edit/PROFILE) you can specify an alternative .js or .css files, define the path to the place you want to store the custom file and edit them as you wish.
If you don't do that, changes are lost after updating the module (in the future).
More's the point, why doesn't
More's the point, why doesn't ckeditor allow you to use different text sizes? I'm not quite a numpty and not quite an expert, but this really puzzles me. Just about any other wysiwyg text editor since the dawn of time will allow you to vary the text size.
Update: looks like I had a fault with CKeditor, see https://www.drupal.org/node/2128539 and comment by 'alisoncc'