开发者

How to have a function executed each time the WMD preview is refreshed?

I need to have a function executed each time the preview is refreshed for a WMD control.

Is there some function I can use to insert开发者_StackOverflow a hook for preview refreshes?


var editor1 = new Markdown.Editor(converter1);

editor1.hooks.set("onPreviewRefresh", HtmlUpdated);

editor1.run();

}

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜