Thanks to the post of the csdn community hsboy user
original:
6th floor hsboy (PHP it!) replied on 2006-03-05 18:44:07 Score 60
Assumptions
1. The content you want to edit with fckeditor is passed to the template through $smarty->assign('content', $content)
2. The fckeditor editor is placed in the fckeditor directory of the currently called php program (note that it is not the directory where the template file is located).
Then just write the template like this:
<script type="text/javascript" src="fckeditor/"></script>
<form method="POST">
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'content' ) ;
= "fckeditor/" ;
= 300 ;
= '{ $content }' ;
() ;
</script>
</form>
It is easy to solve your problem by yourself. This is not a very difficult task. In fact, many of them are rookies.
original:
6th floor hsboy (PHP it!) replied on 2006-03-05 18:44:07 Score 60
Assumptions
1. The content you want to edit with fckeditor is passed to the template through $smarty->assign('content', $content)
2. The fckeditor editor is placed in the fckeditor directory of the currently called php program (note that it is not the directory where the template file is located).
Then just write the template like this:
Copy the codeThe code is as follows:
<script type="text/javascript" src="fckeditor/"></script>
<form method="POST">
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'content' ) ;
= "fckeditor/" ;
= 300 ;
= '{ $content }' ;
() ;
</script>
</form>
It is easy to solve your problem by yourself. This is not a very difficult task. In fact, many of them are rookies.