mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding a link to markdown help
--HG-- branch : 1.x
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
(function () {
|
(function () {
|
||||||
var marker = '<!-- markdown -->';
|
var marker = '<!-- markdown -->';
|
||||||
var converter = Markdown.getSanitizingConverter();
|
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) {
|
editor.hooks.set("insertImageDialog", function (callback) {
|
||||||
// see if there's an image selected that they intend on editing
|
// see if there's an image selected that they intend on editing
|
||||||
|
|||||||
Reference in New Issue
Block a user