mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Added ability to scroll down using arrow key in ace editor (still issues with scrolling up)
This commit is contained in:
parent
91817cb98b
commit
d4b33c669a
1 changed files with 3 additions and 2 deletions
|
@ -81,7 +81,7 @@
|
||||||
|
|
||||||
<div class="row editor">
|
<div class="row editor">
|
||||||
<div class="col col-100">
|
<div class="col col-100">
|
||||||
<div id="editor" style="width: 100%; position: relative;"><%==encoding_fix(@file_data) %>
|
<div id="editor"><%==encoding_fix(@file_data) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -152,7 +152,8 @@
|
||||||
editor.setFontSize(14)
|
editor.setFontSize(14)
|
||||||
editor.setShowPrintMargin(false)
|
editor.setShowPrintMargin(false)
|
||||||
editor.setOptions({
|
editor.setOptions({
|
||||||
maxLines: Infinity
|
maxLines: Infinity,
|
||||||
|
autoScrollEditorIntoView: true
|
||||||
})
|
})
|
||||||
|
|
||||||
editor.on('change', function(obj) {
|
editor.on('change', function(obj) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue