update ace editor, auto sizing

This commit is contained in:
Kyle Drake 2014-10-13 15:16:42 -07:00
parent 7f7b1fc8d5
commit b4f04cdab8
298 changed files with 388 additions and 63 deletions

View file

@ -66,7 +66,7 @@
<div class="row">
<div class="col col-100">
<div id="editor" style="width: 100%; height: 600px; position: relative; margin-bottom:25px"><%==encoding_fix(@file_data) %>
<div id="editor" style="width: 100%; position: relative; margin-bottom:25px"><%==encoding_fix(@file_data) %>
</div>
</div>
</div>
@ -149,17 +149,19 @@
})
}
var editor = {};
var editor = {}
$(document).ready(function() {
editor = ace.edit("editor");
setTheme();
editor.getSession().setMode("ace/mode/html");
editor.getSession().setTabSize(2);
editor.getSession().setUseWrapMode(true);
editor.setFontSize(14);
editor.setShowPrintMargin(false);
});
editor = ace.edit("editor")
setTheme()
editor.getSession().setMode("ace/mode/html")
editor.getSession().setTabSize(2)
editor.getSession().setUseWrapMode(true)
editor.setFontSize(14)
editor.setShowPrintMargin(false)
editor.setOptions({
maxLines: Infinity
})
})
</script>