If I have custom ckeditor.styles.js files defined for different input filters the different ckeditor.styles.js aren't loaded when I switch filter. The ckeditor.styles.js associated with the filter selected when the page loads is used. This means that only 1 ckeditor.styles.js can be used for all configs.

Comments

mark.tl’s picture

I'm having this same problem. Each use a different style.js, but when you select a different filter it will keep the previous version's style.js. Is there a way to clear the cache?

farse’s picture

same problem here with 7.x-1.16

farse’s picture

Version: 7.x-1.13 » 7.x-1.16
farse’s picture

farse’s picture

while I didn't find a solution to the problem I did find a workaround that worked for us as we wanted custom styles for specific conditions. I used the hook_ckeditor_settings_alter() function to set the default style.

function hook_ckeditor_settings_alter(&$settings, $conf) {

  // Add whatever conditions here to load custom style...
   $settings['stylesCombo_stylesSet'] = 'drupal:/sites/all/themes/custom_theme/ckeditor/ckeditor.styles.js';
}