Thank Csdn Community Hsboy User's post
Original:
6/F Hsboy (PHP it!) reply to 2006-03-05 18:44:07 score 60
Assume
1, you want to use FCKeditor edited content through $smarty->assign (' content ', $content) passed to the template
2. The FCKeditor editor is placed in the directory where the currently invoked PHP program is located (note that the directory where the template file is located) is FCKeditor
The template can only be written like this:
Copy Code code as follows:
<script type= "Text/javascript" src= "Fckeditor/fckeditor.js" ></script>
<form method= "POST" >
<script type= "Text/javascript" >
var ofckeditor = new FCKeditor (' content ');
Ofckeditor.basepath = "fckeditor/";
Ofckeditor.height = 300;
Ofckeditor.value = ' {$content} ';
Ofckeditor.create ();
</script>
</form>
It's easy to solve your problem by carefully studying it yourself. This is not a very difficult task. In fact, many of these are rookie level.