【问题标题】:How to have a function executed each time the WMD preview is refreshed?每次刷新 WMD 预览时如何执行功能?
【发布时间】:2011-03-15 04:43:59
【问题描述】:

每次刷新 WMD 控件的预览时,我都需要执行一个函数。

有什么函数可以用来插入预览刷新的钩子吗?

【问题讨论】:

    标签: hook preview wmd wmd-editor


    【解决方案1】:
    var editor1 = new Markdown.Editor(converter1);
    
    editor1.hooks.set("onPreviewRefresh", HtmlUpdated);
    
    editor1.run();
    

    }

    function HtmlUpdated(){
    ...deal with it...
    }
    

    【讨论】:

      猜你喜欢
      • 2020-07-03
      • 1970-01-01
      • 1970-01-01
      • 2012-12-18
      • 1970-01-01
      • 1970-01-01
      • 2014-03-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多