Fix javascript error
This commit is contained in:
parent
a84bc05f01
commit
0e2c27d795
@ -1448,7 +1448,8 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
|
|||||||
{
|
{
|
||||||
$pathckeditor = constant('JS_CKEDITOR');
|
$pathckeditor = constant('JS_CKEDITOR');
|
||||||
}
|
}
|
||||||
print '<script><!-- enable ckeditor by main.inc.php -->';
|
print '<!-- enable ckeditor by main.inc.php -->';
|
||||||
|
print '<script>';
|
||||||
print 'var CKEDITOR_BASEPATH = \''.$pathckeditor.'\';'."\n";
|
print 'var CKEDITOR_BASEPATH = \''.$pathckeditor.'\';'."\n";
|
||||||
print 'var ckeditorConfig = \''.dol_buildpath($themesubdir.'/theme/'.$conf->theme.'/ckeditor/config.js'.($ext ? '?'.$ext : ''), 1).'\';'."\n"; // $themesubdir='' in standard usage
|
print 'var ckeditorConfig = \''.dol_buildpath($themesubdir.'/theme/'.$conf->theme.'/ckeditor/config.js'.($ext ? '?'.$ext : ''), 1).'\';'."\n"; // $themesubdir='' in standard usage
|
||||||
print 'var ckeditorFilebrowserBrowseUrl = \''.DOL_URL_ROOT.'/core/filemanagerdol/browser/default/browser.php?Connector='.DOL_URL_ROOT.'/core/filemanagerdol/connectors/php/connector.php\';'."\n";
|
print 'var ckeditorFilebrowserBrowseUrl = \''.DOL_URL_ROOT.'/core/filemanagerdol/browser/default/browser.php?Connector='.DOL_URL_ROOT.'/core/filemanagerdol/connectors/php/connector.php\';'."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user