Closed nanqic closed 6 months ago
感谢开源贡献者。 我想只保留部分toolbar图标,必须像demo这么复杂吗?https://uiwjs.github.io/react-md-editor/#custom-toolbars 有没有一个简单的配置,只启用或关闭不用的功能,这样打包体积是不是也小一点。
用默认的配置,打包体积1M,有办法优化吗? dist/assets/mdEditor-teGtT9UY.js 1,041.59 kB
dist/assets/mdEditor-teGtT9UY.js 1,041.59 kB
@nanqic 你的两个问题
https://github.com/uiwjs/react-md-editor/blob/c7d5acdf26e437973b826e914fb7b15493641c43/core/src/commands/index.ts#L90-L116
import MDEditor from '@uiw/react-md-editor/nohighlight';
https://github.com/uiwjs/react-md-editor/blob/c7d5acdf26e437973b826e914fb7b15493641c43/core/README.md?plain=1#L140-L166
已解决,感谢您的回复!
感谢开源贡献者。 我想只保留部分toolbar图标,必须像demo这么复杂吗?https://uiwjs.github.io/react-md-editor/#custom-toolbars 有没有一个简单的配置,只启用或关闭不用的功能,这样打包体积是不是也小一点。