diff --git a/htdocs/core/class/doleditor.class.php b/htdocs/core/class/doleditor.class.php
index 4f16862c82e..d6d1bd86539 100644
--- a/htdocs/core/class/doleditor.class.php
+++ b/htdocs/core/class/doleditor.class.php
@@ -176,7 +176,7 @@ class DolEditor
/* should be editor=CKEDITOR.replace but what if serveral editors ? */
CKEDITOR.replace(\''.$this->htmlname.'\',
{
- customConfig : \''.dol_buildpath('/theme/'.$conf->theme.'/ckeditor/config.js',1).'\',
+ customConfig : ckeditorConfig,
toolbar: \''.$this->toolbarname.'\',
toolbarStartupExpanded: '.($this->toolbarstartexpanded ? 'true' : 'false').',
width: '.($this->width ? '\''.$this->width.'\'' : '\'\'').',
@@ -201,8 +201,8 @@ class DolEditor
{
$out.= ','."\n";
// To use filemanager with old fckeditor (GPL)
- $out.= ' filebrowserBrowseUrl : \''.DOL_URL_ROOT.'/core/filemanagerdol/browser/default/browser.php?Connector='.DOL_URL_ROOT.'/core/filemanagerdol/connectors/php/connector.php\',';
- $out.= ' filebrowserImageBrowseUrl : \''.DOL_URL_ROOT.'/core/filemanagerdol/browser/default/browser.php?Type=Image&Connector='.DOL_URL_ROOT.'/core/filemanagerdol/connectors/php/connector.php\',';
+ $out.= ' filebrowserBrowseUrl : ckeditorFilebrowserBrowseUrl,';
+ $out.= ' filebrowserImageBrowseUrl : ckeditorFilebrowserImageBrowseUrl,';
//$out.= ' filebrowserUploadUrl : \''.DOL_URL_ROOT.'/includes/fckeditor/editor/filemanagerdol/connectors/php/upload.php?Type=File\',';
//$out.= ' filebrowserImageUploadUrl : \''.DOL_URL_ROOT.'/includes/fckeditor/editor/filemanagerdol/connectors/php/upload.php?Type=Image\',';
$out.= "\n";
diff --git a/htdocs/core/js/editinplace.js b/htdocs/core/js/editinplace.js
index 7748b73fce6..bf94a47749a 100644
--- a/htdocs/core/js/editinplace.js
+++ b/htdocs/core/js/editinplace.js
@@ -80,7 +80,13 @@ $(document).ready(function() {
indicator : indicatorInPlace,
ckeditor : {
customConfig: ckeditorConfig,
- toolbar: $('#ckeditor_toolbar').val()
+ toolbar: $('#ckeditor_toolbar').val(),
+ filebrowserBrowseUrl : ckeditorFilebrowserBrowseUrl,
+ filebrowserImageBrowseUrl : ckeditorFilebrowserImageBrowseUrl,
+ filebrowserWindowWidth : '900',
+ filebrowserWindowHeight : '500',
+ filebrowserImageWindowWidth : '900',
+ filebrowserImageWindowHeight : '500'
},
submitdata : function(result, settings) {
return getParameters(this, 'ckeditor');
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index d09ad632ba2..fb1f552b97c 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -968,7 +968,6 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
print 'var cancelInPlace = \''.$langs->trans('Cancel').'\';'."\n";
print 'var submitInPlace = \''.$langs->trans('Ok').'\';'."\n";
print 'var indicatorInPlace = \'
theme."/img/working.gif".'">\';'."\n";
- print 'var ckeditorConfig = \''.dol_buildpath('/theme/'.$conf->theme.'/ckeditor/config.js',1).'\';'."\n";
print ''."\n";
print ''."\n";
print ''."\n";
@@ -1009,7 +1008,12 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
}
else
{
- print ''."\n";
+ print ''."\n";
print ''."\n";
}
}