报错信息如下:
解决办法:
第一种:
找到 ueditor.all.js文件中如下代码:
if (editor.options.wordCount) {
function countFn() {
setCount(editor,me);
domUtils.un(editor.document, "click", arguments.callee);
}
domUtils.on(editor.document, "click", countFn);
editor.ui.getDom('wordcount').innerHTML = editor.getLang("wordCountTip");
}
对如下代码两处进行修改:
改成如下:
第二种:
修改.babelrc文件,让其忽略对第三方文件的严格转码,添加如下
"ignore": [
"./static/UE/*.js"
]
原因: