手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >FCKeditor smarty 编辑器的应用PHP
FCKeditor smarty 编辑器的应用PHP
摘要:感谢csdn社区hsboy用户的帖子原文:6楼hsboy(PHPit!)回复于2006-03-0518:44:07得分60假设1、你要用fc...

感谢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>

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

【FCKeditor smarty 编辑器的应用PHP】相关文章:

PHP网页 Ewebeditor 编辑器嵌入方法

asp.net CKEditor和CKFinder的应用

ThinkPHP中FCKeditor编辑器的使用方法

ASP下使用FCKeditor在线编辑器的方法

nicedit 轻量级编辑器 使用心得

FCKeditor2.3 For PHP 详细整理的使用参考

FCKeditor 编辑器插入代码功能实现步骤

fckeditor编辑器在php中的配置方法

让 FCKeditor 支持多用户Web环境(以PHP为例)

XHEditor编辑器使用文档

精品推荐
分类导航