[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-dev] [task #10579] Simplify code using editor
From: |
Laurent Destailleur |
Subject: |
[Dolibarr-dev] [task #10579] Simplify code using editor |
Date: |
Fri, 27 Aug 2010 00:12:57 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 |
URL:
<http://savannah.nongnu.org/task/?10579>
Summary: Simplify code using editor
Project: Dolibarr
Submitted by: eldy
Submitted on: ven 27 aoû 2010 02:12:56 CEST
Category: Global
Should Start On: ven 27 aoû 2010 00:00:00 CEST
Should be Finished on: ven 27 aoû 2010 00:00:00 CEST
Priority: 9 - Immediate
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Task open to external developers: None
_______________________________________________________
Details:
Replace code like this
if ($conf->fckeditor->enabled &&
$conf->global->FCKEDITOR_ENABLE_PRODUCTDESC)
{
require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
$doleditor=new
DolEditor('desc',$_POST["desc"],160,'dolibarr_notes','',false);
$doleditor->Create();
}
else
{
print '<textarea name="desc" rows="4" cols="90">';
print $_POST["desc"];
print '</textarea>';
}
with
$doleditor=new
DolEditor('fmeditor',$_POST["desc"],160,'dolibarr_notes','',false,$conf->global->FCKEDITOR_ENABLE_PRODUCTDESC,4,90);
$doleditor->Create();
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?10579>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dolibarr-dev] [task #10579] Simplify code using editor,
Laurent Destailleur <=