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

网页编辑器
fckeditor在php中的用法(添加于修改写成了函数)
关于CKeditor的非主流个性应用的设置
dedecms5.5 最新版ckeditor编辑器整合教程
javascript 网页编辑框及拖拽图片的问题
asp.net FCKeditor 2.6.3 配置说明
轻松实现 CKfinder进驻CKEditor3.0
将CKfinder 整合进 CKEditor3.0的方法
ASp.net下fckeditor配置图片上传最简单的方法
ckeditor 简单配置方法
asp.net CKEditor和CKFinder的应用
FCKEDITOR 的高级功能和常见问题的解决方法
CuteEditor 编辑器的字体样式无法控制的解决方法
fckeditor 修改记录添加行距功能插件
SyntaxHighlighter 语法高亮插件的使用教程

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-10   浏览: 279 ::
收藏到网摘: 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>