Raccourcis : Contenu - rubriques - sous rubriques
FR

Piste :

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
tutoriels:fckeditor [2007/08/30 08:36] – créée laurenttutoriels:fckeditor [2007/12/17 12:01] laurent
Ligne 23: Ligne 23:
  
 <code ini> <code ini>
-  defaultModule = "tutorfck" +  startModule = "tutorfck" 
-  defaultAction = "default_index"+  startAction = "default:index" 
 + 
 +  [urlengine]
   engine        = simple   engine        = simple
   multiview     = off   multiview     = off
-  basePath      = "/tutorfck/www" 
-</code> 
- 
-Si il s'agit de Jelix 1.0beta2 ou précédente, vous devez modifier le basePath selon votre configuration.  Dans ce tutoriel Jelix à été installé dans le répertoire /jelix. Donc le basePath sera égale à  
-<code ini> 
-  basePath = "/jelix/tutorfck/www" 
 </code> </code>
  
Ligne 38: Ligne 34:
 Téléchargez le logiciel [[http://www.fckeditor.net/|FCKeditor]] Téléchargez le logiciel [[http://www.fckeditor.net/|FCKeditor]]
 Décompressez l'archive dans le répertoire /jelix/tutorfck/www/ Décompressez l'archive dans le répertoire /jelix/tutorfck/www/
 +
  
 ===== Création du plugin de template ===== ===== Création du plugin de template =====
Ligne 46: Ligne 43:
   require_once (JELIX_APP_WWW_PATH.'fckeditor/fckeditor.php');   require_once (JELIX_APP_WWW_PATH.'fckeditor/fckeditor.php');
      
-  function jtpl_function_fckeditor( $tpl, $contenu="aucun contenu" ) {+  function jtpl_function_html_fckeditor( $tpl, $contenu="aucun contenu" ) {
     $oFCKeditor = new FCKeditor('FCKeditor1') ;     $oFCKeditor = new FCKeditor('FCKeditor1') ;
-  +    $oFCKeditor->BasePath = $GLOBALS['gJConfig']->urlengine['basePath'] .'fckeditor/';    
-    /* Vous devez choisir et l'adapter à votre plate-forme l'un de ces 2 BasePath +
-    * En absolu, style : http://localhost/jelix/tutorfck/www/ +
-    *    pour un site local (localhost)  +
-    *    pour les moteurs d'url simple ou significant +
-    */ +
-    $oFCKeditor->BasePath = '/jelix/tutorfck/www/fckeditor/';    +
-    /* +
-    * En relatif, style : http://www.fck1.net/ +
-    *    pour un site virtual +
-    *    pour les moteurs d'url simple ou significant +
-    */ +
-    //$oFCKeditor->BasePath = '/fckeditor/';  +
-  +
     $oFCKeditor->Value = $contenu;     $oFCKeditor->Value = $contenu;
     $oFCKeditor->Create();      $oFCKeditor->Create();
Ligne 78: Ligne 62:
   <p>Intégration de FCKeditor module : tutorfck</p>   <p>Intégration de FCKeditor module : tutorfck</p>
      
-  <form action="{jurl 'tutorfck~default_index'}" method="post"> +  <form action="{formurl 'tutorfck~default:index'}" method="post"> 
-   +  <div>{formurlparam 'tutorfck~default:index'}</div> 
-  {fckeditor $mytext} +  <div>  {fckeditor $mytext} </div
-   +  <div> <input type="submit" value="Submit" /></div>
-  <br /> +
-  <input type="submit" value="Submit" />+
   </form>   </form>
 </code> </code>
Ligne 108: Ligne 90:
 ===== Comment appeler la page de démonstration de FCKeditor? ===== ===== Comment appeler la page de démonstration de FCKeditor? =====
 Dans la barre d'adresse : Dans la barre d'adresse :
-  http://localhost/jelix/tutorfck/www/index.php?module=tutorfck&action=default_index+  http://localhost/jelix/tutorfck/www/index.php?module=tutorfck&action=default:index
  
 Dans un template : Dans un template :
-  {jurl 'tutorfck~default_index'}+  {jurl 'tutorfck~default:index'}
  
  

fr/tutoriels/fckeditor.txt · Dernière modification : 2012/04/14 19:41 de laurent

Fils rss des changements récents dans le wiki Creative Commons License