1

7 In Civicrm 4.7+ there's a great interface for customising CKEditor, and it allows you to add custom styles to the editor. That's great!

But we would very much like to go further and call a whole new custom css file for CKEditor. Much like you can in Drupal's CKEditor. We use in Civi we use CDEditor for event descriptions and much much more, and we'd like to make the CKEditor interface the same as for our Drupal web pages.

Is this already possible? And if not, any ideas about how to make it possible? Thanks for your help!

Civicrm 5.10.3, Drupal 7 latest.

  • Would using extras.css work? Described here docs.civicrm.org/user/en/latest/initial-set-up/resource-urls – Demerit Apr 7 at 20:31
  • Thanks for the thought! Nevertheless, as I understand extras.css, it's for the whole of Civicrm, rather than just for CKEditor. When CKEditor loads it displays the field it's showing via an iframe. So the only css that can affect the contents of the iframe is something that has been loaded within the <head> of the doc within the iframe (I hope that's correct! :-) ). So I'm asking if there's a way to tell CKEditor to load in a custom css file, like is possible in Drupal. – Andyg8 Apr 8 at 23:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.