[codemirror] use inputStyle=contenteditable for better select-all performance

This commit is contained in:
Raymond Hill 2018-03-06 06:22:11 -05:00
parent d2be9aeb0b
commit 34efe9d6f2
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
2 changed files with 2 additions and 0 deletions

View file

@ -36,6 +36,7 @@ var cmEditor = new CodeMirror(
document.getElementById('userFilters'), document.getElementById('userFilters'),
{ {
autofocus: true, autofocus: true,
inputStyle: 'contenteditable',
lineNumbers: true, lineNumbers: true,
lineWrapping: true, lineWrapping: true,
styleActiveLine: true styleActiveLine: true

View file

@ -46,6 +46,7 @@
document.getElementById('content'), document.getElementById('content'),
{ {
autofocus: true, autofocus: true,
inputStyle: 'contenteditable',
lineNumbers: true, lineNumbers: true,
lineWrapping: true, lineWrapping: true,
readOnly: true, readOnly: true,