Skip to content

Instantly share code, notes, and snippets.

@thamas
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thamas/9400829 to your computer and use it in GitHub Desktop.
Save thamas/9400829 to your computer and use it in GitHub Desktop.
Make custom CSS classes work with Drupal WYSIWYG 7.x-2.2 and CKEditor 4.3.3

I use it to set img floats. To make it work

  1. be sure to define at least one inline element class (when you defined your image float classes), for examle Emphasize=span.emph
  2. add a "cache-buster" to the end of the path of you css file: /sites/all/themes/mytheme/css/style.css?v1 (the "chache-buster" is the "?v1" at the end of the path. More info: http://chipcullen.com/how-to-apply-classes-ckeditor-4-in-drupal-7/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment