simplemde-markdown-editor 如何重新构建?

2016-10-29 23:00:55 +08:00
 Marser

打算在管理后台中嵌入这款 markdown 编辑器( https://github.com/NextStepWebs/simplemde-markdown-editor

在使用中发现, simplemde.min.js 会自动从其他站下载相关的字体、样式文件,但是却消耗特别长的时间,进而影响了网页的加载速度,如下图: http://ww3.sinaimg.cn/mw690/5d6916a4gw1f99iyhyrykj21hc07vn00.jpg

我想把这些相关的字体、样式文件下载到本地的 simplemde-markdown-editor 项目中,然后重新打包构建,具体是需要如何操作?

本人偏后端,对前端的玩法还在逐步摸索当中,所以没有什么头绪,烦请各位指点一二,非常感谢~~

4039 次点击
所在节点    Markdown
5 条回复
Marser
2016-10-29 23:01:51 +08:00
SoloCompany
2016-10-30 03:00:22 +08:00
RTFM

人家文档不是告诉你了吗

autoDownloadFontAwesome: If set to true, force downloads Font Awesome (used for icons). If set to false, prevents downloading. Defaults to undefined, which will intelligently check whether Font Awesome has already been included, then download accordingly.
Marser
2016-10-30 11:07:18 +08:00
@SoloCompany soga ,非常感谢~~
chuanqirenwu
2016-12-28 08:25:11 +08:00
有在移动端测试过么?我测试发现无法输入中文。
Marser
2016-12-28 19:31:24 +08:00
@chuanqirenwu 木有在移动端试呃

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/316493

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX