Search code examples
ckeditorfckeditor

CKEditor initial tweaks - font size


I am using CKEditor on a webpage. Quite impressive but I have few very annoying issues I hope you can help me overtake.

1) When the editor is created by Javascript the default font size (12px, I guess) is too small for my7 needs. I would like the font size to be 18px as the user starts typing on a new document.

2) I can change the font size of a block of text by selecting the block of text and then using the combo for the font size. What I can't do is set the combo for the font size (i.e. to 30px) and then type at that size. I think I can do the latter on Microsoft word, for example.

Thanks, Dan


Solution

  • If you are using the default styles, then you must change it at:

    Providers\HtmlEditorProviders\Fck\FCKeditor\editor\css\fck_editorarea.css

    Just change the style:

    body, td
    {
     font-family: Arial, Verdana, Sans-Serif;
     font-size: 12px;
    }
    

    Does thi help?

    Source