首页前端开发其他前端知识PHP网页 Ewebeditor 编辑器嵌入方法

PHP网页 Ewebeditor 编辑器嵌入方法

时间2024-02-10 10:47:03发布访客分类其他前端知识浏览733
导读:收集整理的这篇文章主要介绍了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
CuteEditor 编辑器的字体样式无法控制的解决方法 fckeditor 修改记录添加行距功能插件

游客 回复需填写必要信息