Closed (fixed)
Project:
Wysiwyg
Version:
7.x-2.x-dev
Component:
Editor - CKEditor
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2012 at 13:40 UTC
Updated:
28 Aug 2012 at 01:01 UTC
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
Comment #1
marcoka commentedok my fault, should be this i guess
$settings['customConfig'] = base_path() . drupal_get_path('module', 'wysiwyg_settings') . '/ckeditor.custom.js';Comment #2
twodYes, that looks better.