FCKeditor smarty 编辑器的应用PHP_技术学院_宜昌市隼壹珍商贸有限公司

您好,欢迎访问宜昌市隼壹珍商贸有限公司

400 890 5375
当前位置: 主页 > 新闻动态 > 技术学院

FCKeditor smarty 编辑器的应用PHP

发布时间:2026-01-17  |  点击率:
感谢csdn社区 hsboy用户的帖子

原文:

6 楼hsboy(PHP it!)回复于 2006-03-05 18:44:07 得分60

假设
1、你要用fckeditor编辑的内容通过$smarty->assign('content', $content)传递到模板
2、fckeditor编辑器放在当前被调用的php程序所在目录(注意不是模板文件所在的目录)的fckeditor目录下

则模板只需这样写即可:
复制代码 代码如下:
<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>

自己仔细研究一下很容易解决你这个问题的。这并不是一个很困难的任务。其实这里很多都是菜鸟级别的。

全国统一服务电话

400 890 5375

电子邮箱:879577@qq.com

公司地址:宜昌市西陵区黄河路5号三峡明珠10栋1051室

咨询微信

TEL:13680874598