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

@@ -13,7 +13,7 @@
box-sizing: border-box;
}
.editor.full .container {
.full .container {
position: fixed;
top : 3em;
right : 0;
@@ -26,7 +26,8 @@
}
.editor #preview-area,
.editor textarea {
.editor textarea,
.CodeMirror {
position : relative;
box-sizing: border-box;
height : 100%;
@@ -36,6 +37,10 @@
font-size : 1.05em;
}
.CodeMirror {
padding: 0;
}
.editor #preview-area *:first-child {
margin-top: 0;
}
@@ -142,4 +147,10 @@
.full .action-bar {
width: 75%;
}
.full .cm-s-mdn-like.CodeMirror {
background: none;
width : auto;
margin : 1.5em 10%;
}

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();