Comment configurer l'éditeur avec une url
Bonjour,
Je n'arrive pas à configurer mon éditeur. Actuellement voilà le html que j'ai dans mon header :
Code:
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() ;
} |
Je souhaiterai donc que tous mes textareas avec l'id 'fckeditor' soient remplacer par l'éditeur.
Actuellement dans mes textarea j'ai ce message d'erreur :
Code:
1 2 3
| Not Found
The requested URL /fckeditor/editor/fckeditor.html was not found on this server. |
Je comprends bien qu'il ne trouve pas le répertoire editor/ mais je n'ai pas réussi à lui indiquer ce chemin.
Dans mon code si j'indique le BasePath comme :
Code:
oFCKeditor.BasePath = \''.$path_js.'editor/\' ;
donnant 'http://location/library/fckeditor/editor/' mon site est chargé dans le textarea :aie:
Qu'est ce qui me manque ???
Merci de votre aide