Work on task #10579 : Simplify code using editor

This commit is contained in:
Laurent Destailleur 2010-09-04 12:52:06 +00:00
parent bd5ee3e9c7
commit 2368cc676e
2 changed files with 2 additions and 2 deletions

View File

@ -1108,7 +1108,7 @@ if ($id > 0 || ! empty($ref))
require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
$nbrows=ROWS_2;
if (! empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) $nbrows=$conf->global->MAIN_INPUT_DESC_HEIGHT;
$doleditor=new DolEditor('eldesc',$commandline->description,200,'dolibarr_details','',false,true,$conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS,70,$nbrows);
$doleditor=new DolEditor('eldesc',$commandline->description,200,'dolibarr_details','',false,true,$conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_DETAILS,$nbrows,70);
$doleditor->Create();
print '</td>';

View File

@ -109,7 +109,7 @@ class DolEditor
{
$this->content = $content;
$this->htmlname = $htmlname;
$this->rows=max(4,$rows);
$this->rows=max(ROWS_3,$rows);
$this->cols=max(40,$cols);
}
}