salut ,

j ai un petit souci avec la configuration de FCKeditor

dans le fckconfig.js j ai ajouter cette barre
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
FCKConfig.ToolbarSets["Basic2"] = [
	['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;

et voila le code au niveau de mon fichier php

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// $oFCKeditor->BasePath = '/fckeditor/' ;      // '/fckeditor/' is the default value.
$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
 
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = $sBasePath ;
 
 
        $oFCKeditor->Config['AutoDetectLanguage']       = false ;
        $oFCKeditor->Config['DefaultLanguage']          = 'fr' ;
 
$oFCKeditor->ToolbarSet = 'Basic2' ;
 
 
 
$oFCKeditor->Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ;
$oFCKeditor->Create() ;
?>

ca me donne l erreur ' la barre d outils "Basic2" n 'existe pas ' ...

la version du FCKeditor et 2.3.2

VersionBuild 1082

Merci Bcp pour votre aide