Comments (9)
我也有这个问题,看了作者的package.json
文件里面的dependencies
依赖了好多东西
from mavoneditor.
katex并不是必需的,用到的用户群很少,可以去掉
from mavoneditor.
@dullsky 很不幸,你所说的那部分用户群包括我。:)
from mavoneditor.
用命令安装mavon-editor,devDependencies
中的包是不会安装的。
主要大头在于highlight.js以及katex的体积,我们正做拆分优化,自动按需加载所需hljs语言文件。。
from mavoneditor.
@Eamonnzhang @linguowei 2.0.1 已发布,将hljs高亮文件拆分按需加载,主要体积缩减到418kb,过段时间空了将katex也拆分异步加载,应该能缩减到200+kb.
from mavoneditor.
@CHENXCHEN 你好,请问在vue-cli搭建的环境中怎么使用2.0以后的版本,按照文档中的步骤配置webpack,编译后,提示 hljs.cpp.js 找不到。另外,如果是高亮文件占用的体积很大的,能不能做一个配置选项,就是不加载高亮文件,有些(比如我)可能只是做一个简单的编辑器,只是文字编辑和排版,不涉及代码的编辑。
from mavoneditor.
@Eamonnzhang 可以贴下webpack的配置和运行详情吗?
另,加个配置选项选择是否高亮代码是个好主意。。将在下版改进。
from mavoneditor.
@Eamonnzhang 2.0.6版本添加了props: ishljs,可以选择是否高亮代码.
from mavoneditor.
Version 2.4.7 Release
from mavoneditor.
Related Issues (20)
- [Bug] cdn 已经全部失效了
- [Bug] Component emitted event "imgAdd" HOT 2
- [Question] 求助,如何关闭html 标签的输入,只采用markdown格式就行。
- [Bug] XYZ 自定义高亮代码, 编辑器代码会再次解析一次覆盖,这个怎么解决
- [Bug] 編輯器v-html渲染頁面後,瀏覽器無法go back
- [Bug] vue3版本,Preview 模式下,可以复制图片进去
- [Bug] 快捷键的提示说明和实际快捷键不符
- [Feature] Markdown 是不支持 将文字标成红色的, 但是写文档时用户要将一些文字加粗标红是常见需求, 国外不清楚,国内的领导们有强烈需求, 不知可不可以在工具栏上加一个标红的按钮。 HOT 1
- 导航栏问题[Question] XYZ
- [Question] 输入小于号<可以显示,输入大于号>不显示,求助 HOT 1
- [Bug] d_render方法获取的html字符串,英文符号被转成了中文符号
- [Bug] 插入图片后,图片下面的内容内遮住无法显示
- 如何在编辑器外部手动设置md.value.previewtoggle
- [Question] vue3 插入html代码后,样式失效 HOT 2
- [字体颜色自定义] 啥时候支持字体颜色可自定义啊!!!
- 如何在Nuxt3引入mavonEditor使用 HOT 1
- [Bug] 引入组件时第三方库报错
- [Question] 怎么设置链接是在本窗口内跳转
- [Feature] embed video
- 文章编辑后,怎么显示呢
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 mavoneditor.