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

Anonymous’s picture

Hi,
also did not find this in the documentation.
My way is:
create a custom module and use hook_init()

function modulename_settings_init() {
    drupal_add_js(drupal_get_path('module', 'modulename') . '/cke_styles.js');
}

and put all styles in cke_styles.js

geek-merlin’s picture

Title: Overriding styles.js » Style list has no effect
Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Component: Documentation » Code
Category: Support request » Bug report
Issue summary: View changes

THis is either code bug (i suppose so) or needs some magic voodo in which case it's a documentation bug.

anou’s picture

Issue summary: View changes