uniapp editor富文本报错 https://unpkg.com/quill@1.3.7/dist/quill.min.js net::ERR_CONNECTION_REFUSED
  WCoL3eOK99gf 2023年11月02日 95 0


editor富文本框点击不了,查看发现

https://unpkg.com/quill@1.3.7/dist/quill.min.js  打不开

uniapp editor富文本报错 https://unpkg.com/quill@1.3.7/dist/quill.min.js net::ERR_CONNECTION_REFUSED_uni-app

解决办法:

把文件下载到本项目中,资源可以在这里下载


1.把文件放到uniapp项目static\js\editor

uniapp editor富文本报错 https://unpkg.com/quill@1.3.7/dist/quill.min.js net::ERR_CONNECTION_REFUSED_html_02

 2.自定义模板 head 内引入

官方文档:editor | uni-app官网

uniapp editor富文本报错 https://unpkg.com/quill@1.3.7/dist/quill.min.js net::ERR_CONNECTION_REFUSED_h5_03

 uniapp项目模板:template.h5.html

uniapp editor富文本报错 https://unpkg.com/quill@1.3.7/dist/quill.min.js net::ERR_CONNECTION_REFUSED_uni-app_04

uniapp editor富文本报错 https://unpkg.com/quill@1.3.7/dist/quill.min.js net::ERR_CONNECTION_REFUSED_uni-app_05

 

uniapp editor富文本报错 https://unpkg.com/quill@1.3.7/dist/quill.min.js net::ERR_CONNECTION_REFUSED_uni-app_06

 两个文件要一起引入

<!-- 富文本编辑器 改为本地引入 -->
		<script src=/h5/static/js/editor/quill.min.js></script>
		<script src=/h5/static/js/editor/image-resize.min.js></script>

 

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  wURKzOHw9Irf   2023年12月24日   26   0   0 HTMLicoicohtml
  8l4CZpTOKa7P   2023年12月26日   38   0   0 htmlhtml
  dwHry2iKGG0I   2023年12月26日   31   0   0 githubgithubhtmlhtml
WCoL3eOK99gf