Commit 55ff492e authored by Sli's avatar Sli

core: edit buttons on MarkdownInupt

parent 3b086036
Pipeline #1660 passed with stage
in 10 minutes and 21 seconds
......@@ -39,6 +39,7 @@
}).done(function (msg) {
preview.innerHTML = msg;
});
return preview.innerHTML;
}
// Pretty markdown input
......@@ -46,10 +47,14 @@
element: document.getElementById("{{ widget.attrs.id }}"),
spellChecker: false,
previewRender: function(plainText, preview){ // Async method
customMarkdownParser(plainText, preview);
return preview.innerHTML;
}
return customMarkdownParser(plainText, preview);
},
showIcons: ["code", "table", "clean-block"]
});
// Change the behavior of the markdown guide button to use our page
$("[title='Markdown Guide']").each(function() {
$(this).prop("href", "/page/Aide_sur_la_syntaxe/");
});
</script>
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment