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)
- Vditor.outlineRender渲染大纲的样式要自己加上去吗?没有自带的? HOT 1
- 缺少文案剧中功能 HOT 1
- 所见即所得粘贴表格不支持合并单元格 HOT 3
- 请求添加内置搜索功能, 文档多了,不能Ctrl+F查找有点费劲 HOT 2
- 尖括号`<>`中的英文会被识别为html标签渲染,导致渲染结果看不到尖括号中的内容 HOT 1
- 粘贴的图片怎么自动上传到服务器 HOT 1
- 不支持单个 $ 包围多行公式左对齐. 两个 $$ 包围多行公式又得居中显示比较麻烦. HOT 3
- 有时需要在vditor渲染完毕的时候触发事件,是否可以提供一个方法vditor.rendered=callback? HOT 3
- 谷歌浏览器,vditor 即时渲染模式下,首行为标题,然后全选,接着中文输入,就会奔溃 HOT 1
- 上传图片以后,希望可以拖拽来调整图片的大小 HOT 1
- 似乎会自动吞掉换行用的两个空格 HOT 1
- 如何把一键markdown文档的图片URL地址转为本地地址? HOT 1
- 引入antd css , 编辑器内全选长文本 删除 会卡顿,如果没有引入,则很丝滑 HOT 1
- 添加 `updateToolbarConfig` 方法
- 希望增加methods:获取焦点在字符串中的位置 HOT 4
- 是否可以写一些 example 用来了解使用方法活着补充一些文档 HOT 3
- insertValue插入文本无法正确渲染 HOT 3
- 超大体积文件 HOT 6
- 编辑界面,如何隐藏左边的 </> 这个符号?? HOT 1
- 在及时渲染和所见及所得模式下代码块的编辑是否可以直接编辑而不是分为上下两栏 HOT 3
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.