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
Post a Comment