Forums / Cotonti / General / CKEditor default editor font

Twiebie
#1 2011-07-07 04:41
How I can change the default font of the editor itself from Times New Roman to for example Verdana?
Trustmaster
#2 2011-07-07 07:44

You should modify plugins/ckeditor/lib/contents.css and set the font there like

* { font: Your Font Here }
May the Source be with you!
Twiebie
#3 2011-07-07 07:56
Hmm, tried that but i'm still getting Times New Roman in the editor..
urlkiller
#4 2011-07-07 15:44
* { font: Your Font Here !IMPORTANT} mybe?
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
Twiebie
#5 2011-07-07 18:38
Nope, doesn't work.. Nothing I put in the plugins/ckeditor/lib/contents.css does anything really..

Added 5 hours later:

Problem solved by including a style with config.contentsCss = 'ckstyle.css';
This post was edited by Twiebie (2011-07-08 00:20, 12 years ago)
urlkiller
#6 2011-07-08 01:50
to be true i had my fair wrestling with that ckedit styling too... can you post your css file?
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
Twiebie
#7 2011-07-08 22:25
#30116 urlkiller:
to be true i had my fair wrestling with that ckedit styling too... can you post your css file?
body {
	font: normal 12px/18px "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
	color: #303030;
	background-color:#FFF;
}

I've included that stylesheet from the ckeditor root folder in config.js with:  

config.contentsCss = 'ckstyle.css';