Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In CKEditor profile for WYSIWYG-HTML under the "CSS" I select "Define CSS", enter the path to my style.css file and then define class in "CSS classes": My small text=smalltext. I have class smalltext in my style.css, but, when editing a page, the Font Styles dropdown displays all the default values and doesn't "My small text".
Comments
Comment #1
khiminrm CreditAttribution: khiminrm commentedComment #2
wobblefoot CreditAttribution: wobblefoot commentedConfirm bug for this version and dev, although this issue appears to duplicate this one for which there is a patch, but no commit, as far as I can see.
Applying this patch has partially fixed the issue. All css classes listed in the wysiwyg configuration screen now appear in the styles dropdown in ckeditor. Lovely. If I empty the classes field in the config screen though, the styles dropdown is not automatically populated with classes from my css file, even though the editor is correctly finding that file and applying block-element formatting. Perhaps further tweaking could make this also work, but I prefer to specify which of my style classes are exposed in the editor so I'm up and running. Many thanks to those who worked on this.
Comment #3
martinduys CreditAttribution: martinduys commentedsubscribe
Comment #4
anthonyR CreditAttribution: anthonyR commentedsubscribe
Comment #5
TwoD#2 is correct, this is a duplicate of #746524: No Font Styles for CKeditor, please update that issue with your test results if the patch there doesn't solve problems related to populating the styles dropdown.