开发者

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

开发者 https://www.devze.com 2023-02-17 00:42 出处:网络
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

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

精彩评论

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