javascript - How do I provide my own insert link dialog in pagedown editor? -


i use pagedown markdown editing , used insertimagedialog overriding default dialog inserting images. want same insert link. found plainlinktext hook, not seem do, want, since post processing url. how can provide own dialog inserting link?

var editor = new markdown.editor(converter, '', options); editor.hooks.set("insertimagedialog", function (callback) {     //show dialog     //example:     //showprompt({     //    message: 'input url',     //    onok: function(url){ callback(url); }     //});     return true; }); 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -