Comments (7)
cdn 配置为 "" ,然后把 dist 拷贝到对应路径下试试。https://github.com/Vanessa219/vditor/blob/32e7c46373ce55205ec32d0099f7df6189518e74/demo/index.js 离线也是可以使用的。
from vditor.
打包构建都是 Tauri 提供的
对 Vue 的打包是由 Tauri 接管的,也就是说集成进入 Tauri 软件的是由 Rust Cargo 集成打包的,我无法在编译时修改 dist 文件的内容
from vditor.
我这边能进行修改的只有 Vue 的代码,而 Tauri 的 CLI 是编译后的 Cargo 二进制工具,如果要在编译时确保 Vditor 的依赖都被打包,那就只能修改编译工具链的代码
from vditor.
不需要修改 dist 文件。初始化时使用 cdn 参数即可。
from vditor.
不需要修改 dist 文件。初始化时使用 cdn 参数即可。
十分感谢你的回答和耐心,我不久前意识到你的意思是我可以将它放在public
文件夹里来让 Vditor 获取,这的确是一个十分可行的方案。
from vditor.
我其实还是觉得应该做一个本地导入的选项,Tauri打包之后的软件50%的占用都来自Vditor,vite和rollupjs都无法对Vditor的依赖和样式表进行压缩优化
from vditor.
dist 里面是已经压缩过了的,可能作用不大,vditor 中主要是 lute 比较大。
from vditor.
Related Issues (20)
- 请求添加内置搜索功能, 文档多了,不能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
- `linkBase` 在切换编辑器时会丢失
- vditor3.10.5版本添加了 updateToolbarConfig 方法 但Releases 版本最新只有3.10.4 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.