Impossible d'installer fckeditor

duddy67 -  
 jclango -
Bonjour,

J'ai un problème pour installer fckeditor. Dans un dossier j'ai
copier le dossier fckeditor et créé une page test.html contenant
le code indiqué sur le site de fckeditor:

<html>
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
oFCKeditor.BasePath = "/fckeditor/" ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
</head>
<body>
<textarea id="MyTextarea" name="MyTextarea">This is <b>the</b> initial value.</textarea>
</body>
</html>

mais lorsque je charge la page j'ai l'erreur:

The requested URL /fckeditor/editor/fckeditor.html was not found on this server.

j'ai essayé de changer le chemin:

<script type="text/javascript" src="mon_dossier/fckeditor/fckeditor.js"></script>

là je n'ai plus de message d'erreur mais juste le formulaire sans rien d'autre.

Quelqu'un pourrait-il m'aider ?
Configuration: Linux
Firefox 3.0.3

3 réponses

  1. Alain_42 Messages postés 5413 Statut Membre 904
     
    il faut faire l'include du php

    //includes
    include("FCKeditor/fckeditor.php") ;
    adaptes à ton chemin bien sur
    0
  2. duddy67
     
    Merci pour ta réponse mais dans quel fichier je doit rajouter:
    include("FCKeditor/fckeditor.php") ; ?
    Le fichier que j'ai édité est un fichier html, et une directive php ne fonctionnera pas.
    0