Create mode + Source view + UI enhancements

This commit is contained in:
NGPixel
2016-08-29 22:19:47 -04:00
parent 0f06ab6dc8
commit 16f300f0d5
27 changed files with 437 additions and 84 deletions

12
client/js/pages/source.js Normal file
View File

@@ -0,0 +1,12 @@
if($('#page-type-source').length) {
var scEditor = ace.edit("source-display");
scEditor.setTheme("ace/theme/tomorrow_night");
scEditor.getSession().setMode("ace/mode/markdown");
scEditor.setReadOnly(true);
scEditor.renderer.updateFull();
console.log(scEditor.getSession().getLength());
}