Daring Fireball: Markdown
CommonMark
MacDown Open Source Markdown Editor
Marked
GitHub Flavored Markdown
Marser
V2EX  ›  Markdown

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

  •  
  •   Marser · Oct 29, 2016 · 4944 views
    This topic created in 3508 days ago, the information mentioned may be changed or developed.

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

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

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

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

    5 replies    2016-12-28 19:31:24 +08:00
    Marser
        1
    Marser  
    OP
       Oct 29, 2016
    SoloCompany
        2
    SoloCompany  
       Oct 30, 2016
    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
        3
    Marser  
    OP
       Oct 30, 2016
    @SoloCompany soga ,非常感谢~~
    chuanqirenwu
        4
    chuanqirenwu  
       Dec 28, 2016 via iPhone
    有在移动端测试过么?我测试发现无法输入中文。
    Marser
        5
    Marser  
    OP
       Dec 28, 2016
    @chuanqirenwu 木有在移动端试呃
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1107 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:28 · PVG 07:28 · LAX 16:28 · JFK 19:28
    ♥ Do have faith in what you're doing.