Bonsoir,

J'ai PHP Version 5.2.5
J'ai appelé l'éditeur avec du javascript et ça marche. J'ai fait la même chose en php et rien ne marche. ça me dit que le fichier n'a pas pu être trouvé. Je me demande si j'ai omis d'ajouter quelque chose au code php.

Voici le code javascript qui marche correctement
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
 {
var oFCKeditor1 = new FCKeditor( 'contenu' ) ;
oFCKeditor1.ToolbarSet = 'MaToolbar' ;
oFCKeditor1.Height = 300;
oFCKeditor1.Width = '100%';
oFCKeditor1.BasePath = '/fckeditor/"';
oFCKeditor1.UserFilesAbsolutePath = '' ;
oFCKeditor1.UserFilesPath = '' ;
oFCKeditor1.ReplaceTextarea() ;
 
} </script>
Voici le code php complet qui ne marche pas
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
			<?php
 
                        include_once("/fckeditor/fckeditor.php");
                        $oFCKeditor1 = new FCKeditor('contenu');
			$oFCKeditor1->ToolbarSet = 'MaToolbar';
			$oFCKeditor1->Width = '100%';
			$oFCKeditor1->Height = '320';
			$oFCKeditor1->Basepath ='/fckeditor/';
			$oFCKeditor1->UserFilesPath  ='';
                        $oFCKeditor1-> UserFilesAbsolutePath  ='';
                        $oFCKeditor1->Create() ;	
			?>
Pourriez-vous SVP m'aidez? Aurai-je louper une ligne importante pour le php ?

D'avance je vous remercie