[View] Intégration de FCKeditor dans Framework Zend
Bonjour à tous,
J'utilise le framework Zend et comme le titre de mon message l'indique, je souhaiterais sur l'une des page intégrer FCKeditor.
J'ai repris le code des exemples. J'ai donc :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Test FCKeditor</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<link href="/FCKeditor/_samples/sample.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
</head>
<body>
<h1>FCKeditor - JavaScript - Exemple 1</h1>
<div>This sample displays a normal HTML form with an FCKeditor with full features enabled.</div>
<hr />
<form action="Devis/enregistreDescription" method="post">
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = '/FCKeditor/';
oFCKeditor.Height = 300 ;
oFCKeditor.Value = 'This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.' ;
oFCKeditor.Create() ;
</script>
<br />
<input type="submit" value="Submit" />
</form>
</body>
</html> |
Seulement voilà, ça me mets le message "Pas d'action".
J'ai essayé de modifier la ligne :
Code:
1 2
|
oFCKeditor.BasePath = '/FCKeditor/'; |
et de mettre à la place :
Code:
1 2
|
oFCKeditor.BasePath = 'FCKeditor/'; |
Lorsque je fais ça, ça m'écrit 5 fois les lignes du début :
Code:
1 2 3 4
|
<h1>FCKeditor - JavaScript - Exemple 1</h1>
<div>This sample displays a normal HTML form with an FCKeditor with full features enabled.</div>
<hr /> |
Est-ce que qeulqu'un pourrait m'aider parce que je ne comprends vraiment pas comment faire pour intégrer FCKeditor à mes pages.
Merci d'avance à tous !