• 企业400电话
  • 网络优化推广
  • AI电话机器人
  • 呼叫中心
  • 全 部 栏 目

    网站建设 商标✡知产 微网小程序 电商运营 彩铃•短信 增值拓展业务
    PHP网页 Ewebeditor 编辑器嵌入方法
    POST TIME:2021-10-18 08:50
    (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单文件版在线代码编辑器
    上一篇:Ewebeditor 文件上传问题
    下一篇:FckEditor 上传图片后图片变小了!问题解决
  • 相关文章
  • 

    关于我们 | 付款方式 | 荣誉资质 | 业务提交 | 代理合作


    © 2016-2020 巨人网络通讯

    时间:9:00-21:00 (节假日不休)

    地址:江苏信息产业基地11号楼四层

    《增值电信业务经营许可证》 苏B2-20120278

    X

    截屏,微信识别二维码

    微信号:veteran88

    (点击微信号复制,添加好友)

     打开微信