mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
core: edit buttons on MarkdownInupt
This commit is contained in:
parent
3b08603635
commit
55ff492ec8
@ -39,6 +39,7 @@
|
|||||||
}).done(function (msg) {
|
}).done(function (msg) {
|
||||||
preview.innerHTML = msg;
|
preview.innerHTML = msg;
|
||||||
});
|
});
|
||||||
|
return preview.innerHTML;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pretty markdown input
|
// Pretty markdown input
|
||||||
@ -46,10 +47,14 @@
|
|||||||
element: document.getElementById("{{ widget.attrs.id }}"),
|
element: document.getElementById("{{ widget.attrs.id }}"),
|
||||||
spellChecker: false,
|
spellChecker: false,
|
||||||
previewRender: function(plainText, preview){ // Async method
|
previewRender: function(plainText, preview){ // Async method
|
||||||
customMarkdownParser(plainText, preview);
|
return customMarkdownParser(plainText, preview);
|
||||||
return preview.innerHTML;
|
},
|
||||||
}
|
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>
|
</script>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user