mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 16:51:36 +02:00
update ace editor, auto sizing
This commit is contained in:
parent
7f7b1fc8d5
commit
b4f04cdab8
298 changed files with 388 additions and 63 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue