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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -