赞
踩
将 UE.getEditor() 更改为 window.UE.getEditor() 即可
原始代码:
<script id="content" type="text/plain"></script>
const _this = this
const config = {}
this.editor = UE.getEditor('content',config)
this.editor.addListener('ready', function() {
_this.editor.setContent('默认内容')
})
修改后
<script id="content" type="text/plain"></script>
const _this = this
const config = {}
this.editor = window.UE.getEditor('content',config)
this.editor.addListener('ready', function() {
_this.editor.setContent('默认内容')
})
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。