mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
[codemirror] use inputStyle=contenteditable for better select-all performance
This commit is contained in:
parent
d2be9aeb0b
commit
34efe9d6f2
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue