différents tests pour régler le problème de la création d'une catégorie avec IE7 (non résolu)
This commit is contained in:
parent
93f3072459
commit
3515beedb2
@ -139,7 +139,7 @@ if ($user->rights->categorie->creer)
|
|||||||
|
|
||||||
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC)
|
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC)
|
||||||
{
|
{
|
||||||
require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
|
||||||
$doleditor=new DolEditor('description',$categorie->description,200,'dolibarr_notes');
|
$doleditor=new DolEditor('description',$categorie->description,200,'dolibarr_notes');
|
||||||
$doleditor->Create();
|
$doleditor->Create();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,37 +52,37 @@ class DolEditor
|
|||||||
*/
|
*/
|
||||||
function DolEditor($htmlname,$content,$height=200,$toolbarname='Basic',$toolbarlocation='In',$toolbarstartexpanded=false)
|
function DolEditor($htmlname,$content,$height=200,$toolbarname='Basic',$toolbarlocation='In',$toolbarstartexpanded=false)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
dolibarr_syslog("DolEditor::DolEditor");
|
dolibarr_syslog("DolEditor::DolEditor");
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT."/includes/fckeditor/fckeditor.php");
|
require_once(DOL_DOCUMENT_ROOT."/includes/fckeditor/fckeditor.php");
|
||||||
$this->editor = new FCKeditor($htmlname);
|
$this->editor = new FCKeditor($htmlname);
|
||||||
$this->editor->BasePath = DOL_URL_ROOT.'/includes/fckeditor/' ;
|
$this->editor->BasePath = DOL_URL_ROOT.'/includes/fckeditor/' ;
|
||||||
$this->editor->Value = $content;
|
$this->editor->Value = $content;
|
||||||
$this->editor->Height = $height;
|
$this->editor->Height = $height;
|
||||||
$this->editor->ToolbarSet = $toolbarname;
|
$this->editor->ToolbarSet = $toolbarname;
|
||||||
$this->editor->Config['AutoDetectLanguage'] = 'true';
|
$this->editor->Config['AutoDetectLanguage'] = 'true';
|
||||||
$this->editor->Config['ToolbarLocation'] = $toolbarlocation ? $toolbarlocation : 'In';
|
$this->editor->Config['ToolbarLocation'] = $toolbarlocation ? $toolbarlocation : 'In';
|
||||||
$this->editor->Config['ToolbarStartExpanded'] = $toolbarstartexpanded;
|
$this->editor->Config['ToolbarStartExpanded'] = $toolbarstartexpanded;
|
||||||
|
|
||||||
$this->editor->Config['UserFilesPath'] = '/viewimage.php?modulepart=fckeditor&file=';
|
$this->editor->Config['UserFilesPath'] = '/viewimage.php?modulepart=fckeditor&file=';
|
||||||
$this->editor->Config['UserFilesAbsolutePath'] = DOL_DOCUMENT_ROOT.'/fckeditor/' ;
|
$this->editor->Config['UserFilesAbsolutePath'] = DOL_DOCUMENT_ROOT.'/fckeditor/' ;
|
||||||
|
|
||||||
if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/fckeditor/fckconfig.js'))
|
if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/fckeditor/fckconfig.js'))
|
||||||
{
|
{
|
||||||
$this->editor->Config['CustomConfigurationsPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/fckconfig.js';
|
$this->editor->Config['CustomConfigurationsPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/fckconfig.js';
|
||||||
$this->editor->Config['SkinPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/';
|
$this->editor->Config['SkinPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/';
|
||||||
// if ($langs->origlang!='auto')
|
// if ($langs->origlang!='auto')
|
||||||
// {
|
// {
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// if ($langs->origlang!='auto')
|
// if ($langs->origlang!='auto')
|
||||||
// {
|
// {
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user