UEditor使用及Cannot set property 'innerHTML' of undefined 及Cannot read property 'replace' of undefine

本文介绍了在使用UEditor时遇到的两个错误:Cannot set property 'innerHTML' of undefined 和 Cannot read property 'replace' of undefined。通过提供ueditor源码下载链接和正确引入js文件的顺序,以及展示html和js代码部分,解释了如何实例化编辑器并解决这些问题。在js部分,展示了如何使用setContent和addContent函数来设置和获取编辑器内容,以及处理AJAX请求。
摘要由CSDN通过智能技术生成

UEditor使用报错Cannot set property 'innerHTML' of undefined 及Cannot read property 'replace' of undefine

 

ueditor源码链接

http://download.csdn.net/download/u014793282/9872235

 

js引入顺序

<script type="text/javascript" charset="utf-8" src="{ { url_for('static', filename='ueditor-full/ueditor.config.js') }}"></script>
<script type="text/javascript" charset="utf-8" src="{ { url_for('static', filename='ueditor-full/ueditor.all.min.js') }}"> </script>
<script type="text/javascript" charset="utf-8" src="{ { url_for('static', filename='ueditor-full/ueditor.zh-cn.js') }}"></script>

 

html 部分

    <div style="width: 100%;">
    <h4>说明<

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值