Keep most possible javascript into head

This commit is contained in:
Laurent Destailleur 2011-02-01 18:49:31 +00:00
parent 9d364554d9
commit 2a96389b9a

View File

@ -70,7 +70,8 @@ class DolEditor
dol_syslog("DolEditor::DolEditor htmlname=".$htmlname." tool=".$tool); dol_syslog("DolEditor::DolEditor htmlname=".$htmlname." tool=".$tool);
// Name of extended editor to use // Name of extended editor to use
$this->tool=empty($conf->global->MAIN_EXTENDED_EDITOR_NAME)?'fckeditor':$conf->global->MAIN_EXTENDED_EDITOR_NAME; //$this->tool=empty($conf->global->MAIN_EXTENDED_EDITOR_NAME)?'fckeditor':$conf->global->MAIN_EXTENDED_EDITOR_NAME; // Name of constants must be NAMEOFMODULE_XXX
$this->tool=empty($conf->global->FCKEDITOR_EDITORNAME)?'fckeditor':$conf->global->FCKEDITOR_EDITORNAME;
// Check if extended editor is ok. If not we force textarea // Check if extended editor is ok. If not we force textarea
if (empty($conf->fckeditor->enabled) || ! $okforextendededitor) if (empty($conf->fckeditor->enabled) || ! $okforextendededitor)