diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index d3e3cc51b5f..fcb0b099a1f 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -886,6 +886,11 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
{
print ''."\n";
}
+ // CKEditor
+ if (! empty($conf->global->FCKEDITOR_EDITORNAME) && $conf->global->FCKEDITOR_EDITORNAME == 'ckeditor')
+ {
+ print ''."\n";
+ }
}
// Output module javascript
@@ -1566,12 +1571,6 @@ if (! function_exists("llxFooter"))
print "\n";
if ($foot) print ''."\n";
-
- // CKEditor
- if (defined('REQUIRE_CKEDITOR'))
- {
- print ''."\n";
- }
if (! empty($conf->global->MAIN_HTML_FOOTER)) print $conf->global->MAIN_HTML_FOOTER."\n";