Impossible d'installer fckeditor
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 ?
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
-
il faut faire l'include du php
//includes
include("FCKeditor/fckeditor.php") ;
adaptes à ton chemin bien sur -
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. -
Voici un tuto pour installer fckeditor : http://dreamgratuit.canalblog.com/archives/2007/05/30/5133353.html