PHP网页 Ewebeditor 编辑器嵌入方法
导读:收集整理的这篇文章主要介绍了PHP网页 Ewebeditor 编辑器嵌入方法,觉得挺不错的,现在分享给大家,也给大家做个参考。 (1)在 </head> 之前加上下面一段代码...
收集整理的这篇文章主要介绍了PHP网页 Ewebeditor 编辑器嵌入方法,觉得挺不错的,现在分享给大家,也给大家做个参考。 (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> 您可能感兴趣的文章:
- 让Editplus成为强大的PHP编辑器
- php中常用编辑器推荐
- php下FCKeditor2.6.5网页编辑器的使用方法
- ThinkPHP中FCKeditor编辑器的使用方法
- ajax php实现给fckeditor文本编辑器增加图片删除功能
- 针对PHP环境下Fckeditor编辑器上传图片配置详细教程
- phpstorm编辑器乱码问题解决
- 推荐5款跨平台的PHP编辑器
- php单文件版在线代码编辑器
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: PHP网页 Ewebeditor 编辑器嵌入方法
本文地址: https://pptw.com/jishu/608258.html
