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/


_______________________________________________
Dolibarr-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à