vue引入百度富文本报错

import '../public/static/utf8-jsp/ueditor.config.js'
import '../public/static/utf8-jsp/ueditor.all.min.js'
import '../public/static/utf8-jsp/lang/zh-cn/zh-cn.js'
import '../public/static/utf8-jsp/ueditor.parse.js'

https://www.cnblogs.com/wqxh/...
我按照这个文章弄得但是会出现uParse is not defined

请问下是什么问题

阅读 2.6k
1 个回答

这是官方文档的代码

<!DOCTYPE HTML>
<html lang="en-US">

<head>
    <meta charset="UTF-8">
    <title>ueditor demo</title>
</head>

<body>
    <!-- 加载编辑器的容器 -->
    <script id="container" name="content" type="text/plain">
        这里写你的初始化内容
    </script>
    <!-- 配置文件 -->
    <script type="text/javascript" src="ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container');
    </script>
</body>

</html>

没有手动加载你说的ueditor.parser.js
你去掉试试

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题