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.
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
Comment #1
mark.tl CreditAttribution: mark.tl commentedI'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?
Comment #2
farse CreditAttribution: farse at Zoocha commentedsame problem here with 7.x-1.16
Comment #3
farse CreditAttribution: farse at Zoocha commentedComment #4
farse CreditAttribution: farse at Zoocha commentedComment #5
farse CreditAttribution: farse at Zoocha commentedwhile 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.