some updates

This commit is contained in:
Henrique Dias
2015-09-19 14:47:59 +01:00
parent 9773f5908b
commit 5dc65eb143
6 changed files with 37 additions and 15 deletions

View File

@@ -33,14 +33,14 @@ $(document).on('ready pjax:success', function() {
if (textarea[0]) {
options = {
mode: 'markdown',
mode: textarea.data("mode"),
theme: 'mdn-like',
lineWrapping: true,
lineNumbers: true,
scrollbarStyle: null
}
if (textarea.data("extension") == "markdown") {
if (textarea.data("mode") == "markdown") {
options.lineNumbers = false
}