1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-06 02:59:39 +02:00

[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'),
{
autofocus: true,
inputStyle: 'contenteditable',
lineNumbers: true,
lineWrapping: true,
styleActiveLine: true

View File

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