php中快速使用fckeditor
来源:互联网 发布:合肥java程序员工资 编辑:程序博客网 时间:2024/05/01 21:17
fckeditor是老牌的东西,之前用ewebeditor的,最近一个项目里是fckeditor,则其实可以这样用.
1 当然要先准备好fckeditor目录了.
2 在editor中,可以如下代码:
//调用编辑器主体
include('editor/fckeditor.php') ;
//设置内容区域
$oFCKeditor = new FCKeditor('content');
$oFCKeditor->Value = $article['content'];
$contentarea = $oFCKeditor->CreateHtml();
其中$article['content']就是文章内容的变量.
然后在要用到编辑器的页面,
include('editor.php');
smarty模版里面
$smarty->assign("contentarea",$contentarea);
模版文件里
<td>{contentarea}></td>就可以了
内容框里提交的内容就是contentarea
- php中快速使用fckeditor
- php中快速使用fckeditor
- PHP 中使用 FCKeditor
- PHP中使用FCKeditor编辑器
- 在PHP中使用功能强大的FCKeditor
- FCKeditor---------php 中配置
- FCKeditor使用小结(php)
- fckeditor php使用配置
- AIR中使用FCKeditor
- JSP中使用FCKeditor
- AIR中使用FCKeditor
- PHP程序中配置FCKEditor
- FCKeditor结合PHP的使用
- php里如何使用fckeditor
- PHP使用FCKEditor的配置
- FCKEditor在PHP中的使用(FCKEditor入门)与配置
- 在JSP中使用FCKeditor
- 在Smarty中使用FCKeditor
- 小结spring和struts整合的三类方式
- Spring中加载ApplicationContext.xml文件的方式
- 设计模式中重要的几条原则复习
- hibernate 3中的缓存小结
- 黑马程序员——数据查询
- php中快速使用fckeditor
- 验证码相关
- php中安全补充
- ajax自动保存用户的输入
- 介绍一款ajax的auotocomplete框架
- (转)iframe自适应
- mule初学的一个注意地方
- 线程小结1
- 目前的开源ESB产品