oma

Amend CKEditor text sizes without editing module

Recommended Posts

Is there a way, without editing the module itself, to change the font sizes set in the CKEditor for h1, h2, h3 etc. They're just too big in proportion to the rest of the text. I'd like to be able to do it without amending the module in case of any updates.

Any thoughts?

Share this post


Link to post
Share on other sites

That's what the custom editor css file config setting on the Input tab of CKEditor fields is for.

ckeditor-custom-editor-css.thumb.png.7149c197d8b9484c0dc4d5e147d016d1.png

  • Like 1

Share this post


Link to post
Share on other sites

Perhaps I'm the only one who does this but I usually load the site's main css into ckeditor. This way the look is much closer to the final result, at least for font size, family, color etc.

If I need to exclude a style from ckeditor I use body:not(.cke) in css (if I remember right for the classname). 

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.