This commit is contained in:
Henrique Dias
2015-09-18 21:46:25 +01:00
parent 92d7a5870c
commit d8c619dd3c
6 changed files with 44 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@@ -43,6 +43,16 @@ $(document).on('ready pjax:success', function() {
return false;
});
if ($('#content-area')[0]) {
var myCodeMirror = CodeMirror.fromTextArea($('#content-area')[0], {
mode: 'markdown',
theme: 'mdn-like',
lineWrapping: true,
lineNumbers: false,
scrollbarStyle: null
});
}
// Submites any form in the page in JSON format
$('form').submit(function(event) {
event.preventDefault();