Comments (9)
cdn 设置为本地的地址就可以了。
from vditor.
不知道作者为什这么执着用CDN。。。。。。。
from vditor.
速度飞起呀
from vditor.
我感觉本地更快,cdn太不稳定了,大项目更是追求稳定,还是建议作者优先本地,cdn作为备选,这么好的插件cdn会劝退不少人感觉。。。。
from vditor.
@bear-joe 可以使用本地的
from vditor.
请问本地cdn怎么写?
我在项目根目录建了个目录 vditor_cdn, 把 dist 目录放进去了, 即 dist 目录是 vditor_cdn 目录的子目录.
cdn 写成 './vditor_cdn'
import Vditor from 'vditor'
但是会报错:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Md2VditorIRDOM')", source: http://192.168.1.20:1420/node_modules/.vite/deps/vditor.js?v=fdd27565 (5164)
import Vditor from '@/../vditor_cdn/dist/index'
会找不到文件
import Vditor from '@/../vditor_cdn/dist/index.min.js'
会报错:
11:20:23 [vite] Pre-transform error: Maximum call stack size exceeded
11:20:34 [vite] Internal server error: Maximum call stack size exceeded
按个人理解, 如果不配置cdn应该是把所有文件大打包, 只有明确指定了cdn才应该通过网络获取cdn上的文件吧. 但是我测试的结果是不设置cdn一样会从默认的cdn上获取文件. 这让想离线使用的项目难搞了..
版本 3.9.8, 请问该如何解决?
from vditor.
修改为 dist 访问的路径 https://xxxx
from vditor.
修改为 dist 访问的路径 https://xxxx
必须走网络,不能直接使用本地的文件打包到一起?
from vditor.
用上线后可以访问的地址就可以了。
from vditor.
Related Issues (20)
- 请问作者,能不能新增一个图片缩放的功能 HOT 1
- 大纲对不齐 HOT 2
- Vditor再次创建渲染问题 HOT 6
- 图表自适应 HOT 1
- TypeError: Cannot read properties of undefined (reading 'currentMode') HOT 1
- TypeError: Cannot read properties of undefined (reading 'cdn') HOT 4
- 请问这个Vditor 能跟onwcloud绑定吗 HOT 1
- 如何改变Browser behavior HOT 1
- Vditor 加载不了了 HOT 1
- 缩放比例变小了,不知道怎么恢复 HOT 4
- options.preview.hljs.linenumber 设置为 true 时复制按钮消失 HOT 1
- [email protected] mermaid 不起作用,流程图、甘特图、甘特图无法渲染 HOT 1
- 移动端预览模式下点击复制代码不弹起键盘
- 预览功能存在XSS漏洞 HOT 4
- 升级到新版本之后,使用Vditor.preview(),Vditor.outlineRender()API生成大纲点击无法跳转 HOT 4
- cdn使用相对地址/相对协议时css被重复加载 HOT 1
- 工具栏选择主题图标+文字,显示方式重复,只需要图标就行 HOT 1
- ChatGPT (API) 返回的公式无法用 Vditor.preview 正确渲染 HOT 1
- GET https://unpkg.com/[email protected]/dist/js/i18n/en_US.js net::ERR_ABORTED 404 (Not Found) HOT 6
- 移动端支持划选阅读 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vditor.