sample:

an error will be output not found file in firebug:
http://dev.test.info/sites/all/libraries/ckeditor/sites/all/modules/cust...

obviously it adds the library path in front.


function MODULE_wysiwyg_editor_settings_alter(&$settings, &$context) {
  $settings['customConfig'] = drupal_get_path('module', 'MODULE') . 'protectedSource.js';
}

Comments

marcoka’s picture

ok my fault, should be this i guess

$settings['customConfig'] = base_path() . drupal_get_path('module', 'wysiwyg_settings') . '/ckeditor.custom.js';

twod’s picture

Category: bug » support
Status: Active » Fixed

Yes, that looks better.

Status: Fixed » Closed (fixed)

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