Problem/Motivation
* Go to ckeditor settings, e.g. admin/config/content/wysiwyg/profile/filtered_html/edit
* Insert some classes
This seems not to have any effect.
Proposed resolution
Has in this module CKE Styles, the JS file should be dynamic.
Remaining tasks
User interface changes
API changes
Original report by @anou
Hello,
I'm having difficulties to find the right way to override the style.js file that configure the Styles dropdown.
If I put some CSS class name in the Style list of the Wysiwyg profil configuration page (e.g.: admin/config/content/wysiwyg/profile/full_html/edit), nothing happens.
The only way I found, is to edit directly the styles.js file in the CKeditor for WYSIWYG module (wysiwyg_ckeditor/lib/ckeditor/styles.js)
But that's no right because it will be overridden on module's update...
Could you please tell me how to do this ?
Thanks
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedHi,
also did not find this in the documentation.
My way is:
create a custom module and use hook_init()
and put all styles in cke_styles.js
Comment #2
geek-merlinTHis is either code bug (i suppose so) or needs some magic voodo in which case it's a documentation bug.
Comment #3
anou