Fix: Pb with new ckeditor.

This commit is contained in:
Laurent Destailleur 2014-03-13 12:45:20 +01:00
parent f1b05dd3c2
commit bb3632e90c

View File

@ -1203,11 +1203,10 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
{ {
print '<!-- Includes JS for CKEditor -->'."\n"; print '<!-- Includes JS for CKEditor -->'."\n";
$pathckeditor=DOL_URL_ROOT.'/includes/ckeditor/'; $pathckeditor=DOL_URL_ROOT.'/includes/ckeditor/';
$jsckeditor='ckeditor_basic.js'; $jsckeditor='ckeditor.js';
if (constant('JS_CKEDITOR')) // To use external ckeditor 4 js lib if (constant('JS_CKEDITOR')) // To use external ckeditor 4 js lib
{ {
$pathckeditor=constant('JS_CKEDITOR'); $pathckeditor=constant('JS_CKEDITOR');
$jsckeditor='ckeditor.js';
} }
print '<script type="text/javascript">'; print '<script type="text/javascript">';
print 'var CKEDITOR_BASEPATH = \''.$pathckeditor.'\';'."\n"; print 'var CKEDITOR_BASEPATH = \''.$pathckeditor.'\';'."\n";