Bonjour,
Je n'arrive pas à configurer mon éditeur. Actuellement voilà le html que j'ai dans mon header :
Je souhaiterai donc que tous mes textareas avec l'id 'fckeditor' soient remplacer par l'éditeur.
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 <script type="text/javascript" src="http://location/library/FCKeditor/fckeditor.js"></script> <script language="javascript" type="text/javascript"> window.onload = function() { // 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 = '/http://location/library/FCKeditor//' ; // '/fckeditor/' is the default value. //var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('application')) ; var oFCKeditor = new FCKeditor( 'fckeditor' ) ; //oFCKeditor.BasePath = http://location/library/FCKeditor/editor/ ; oFCKeditor.ReplaceTextarea() ; }
Actuellement dans mes textarea j'ai ce message d'erreur :
Je comprends bien qu'il ne trouve pas le répertoire editor/ mais je n'ai pas réussi à lui indiquer ce chemin.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3Not Found The requested URL /fckeditor/editor/fckeditor.html was not found on this server.
Dans mon code si j'indique le BasePath comme :donnant 'http://location/library/fckeditor/editor/' mon site est chargé dans le textarea
Code : Sélectionner tout - Visualiser dans une fenêtre à part oFCKeditor.BasePath = \''.$path_js.'editor/\' ;
Qu'est ce qui me manque ???
Merci de votre aide
Partager