In my project requirement was to load node specific styles. Used Code per node module to achieve this. Then on node edit the styles specific to the node added using CPN module should only get loaded in CKeditor styles dropdown.

Solution that I found,


function hook_ckeditor_settings_alter(&$settings, $conf) {
 // Change the css path
 $settings['contentsCss'][1] = '/sites/default/files/cpn/yourfilename.css';
}

Comments

shree.yesare created an issue. See original summary.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.