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

khiminrm’s picture

Status: Needs review » Active
wobblefoot’s picture

Priority: Normal » Major

Confirm 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.

martinduys’s picture

subscribe

anthonyR’s picture

subscribe

TwoD’s picture

Status: Active » Closed (duplicate)

#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.