Disable CodeMirror infinite scroll
This commit is contained in:
parent
e307c56ef4
commit
2291ea4d58
|
@ -1,8 +1,5 @@
|
|||
.CodeMirror {
|
||||
border: 1px solid #bbbdbe;
|
||||
height: auto;
|
||||
height: 372px;
|
||||
font-size: 14.4px;
|
||||
}
|
||||
.CodeMirror-scroll {
|
||||
min-height: 372px;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,6 @@ export default function createTextareaEditor(textarea, onChange) {
|
|||
const editor = CodeMirror.fromTextArea(textarea, {
|
||||
lineNumbers: true,
|
||||
lineWrapping: true,
|
||||
viewportMargin: Infinity,
|
||||
})
|
||||
editor.on('change', onChange)
|
||||
return new CodeMirrorEditor(editor)
|
||||
|
|
Loading…
Reference in New Issue
Block a user