当前位置: 首页 > 图文教程 > 网络编程 > 网页编辑器 > PHP网页 Ewebeditor 编辑器嵌入方法

网页编辑器
FCKeditor 2.0 简化和使用
jsp fckeditor 上传中文图片乱码问题的解决方法
IE8 Fckedit2.6.X不兼容
fckeditor php上传文件重命名的设置
FCKeditor 新闻组件的一些程序漏洞
FckEditor 配置手册中文教程详细说明
Windows Live Writer 实现代码高亮
FckEditor 中文配置手册详细说明
FCKEidtor 自动统计输入字符个数(IE)
nicedit 轻量级编辑器 使用心得
FCKEditor 表单提交时运行的代码
FCKeditor 插件开发 示例(详细版本)
fckeditor 插件实例 制作步骤
fckeditor 插件开发参考文档
fckeditor 常用函数
FCKeditor ASP.NET 上传附件研究
FCKEditor SyntaxHighlighter整合实现代码高亮显示
HTML 编辑器 FCKeditor使用详解
fckeditor 代码语法高亮
eWebEditor 辑器按钮失效 IE8下eWebEditor编辑器无法使用的解决方法

网页编辑器 中的 PHP网页 Ewebeditor 编辑器嵌入方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-10   浏览: 281 ::
收藏到网摘: n/a

因为ewebeditor编辑器的功能强大,容易扩展等原因,一直是大家比较喜爱的编辑器,所以下面介绍下ewebeditor如何跟php结合。 (1)在 </head> 之前加上下面一段代码:(得到 ewebeditor 中编辑的内容)
<script>
function checkForm()
{
document.form1.content .value = window.ewebeditor .getHTML();
************getHTML() 获得编辑区内容
************ 此处的名字 ewebeditor 要与 iframe 中的 name="ewebeditor" 相同
************content.value 也要与 content 中的 <input > 中相对应
}
</script>
(2)下面一段代码是把 ewebeditor 嵌入到网页中:
<tr>
<td align="right" width="5%" > 内容: </td>
<td width="95%">
<input type="hidden" name="content" id="content" value ="">
**********id="content" 中的 content 要与 <iframe> 中的 id=content 相同!
<iframe id="ewebeditor" name="ewebeditor" src="ewebeditor/ewebeditor.php?id=content " frameborder="0" scrolling="no" width="100%" HEIGHT="450">
</iframe>
</td>
</tr>