Adding a link to markdown help

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-01-20 11:52:49 -08:00
parent 917d4a309d
commit c3efdd9f29

View File

@@ -1,7 +1,9 @@
(function () {
var marker = '<!-- markdown -->';
var converter = Markdown.getSanitizingConverter();
var editor = new Markdown.Editor(converter, "", function () { alert("Do you need help?"); });
var editor = new Markdown.Editor(converter, "", {
handler: function () { window.open("http://daringfireball.net/projects/markdown/syntax"); }
});
editor.hooks.set("insertImageDialog", function (callback) {
// see if there's an image selected that they intend on editing