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

css - Text drops down with smaller window -

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

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -