mirror of https://github.com/gorhill/uBlock.git
[codemirror] use inputStyle=contenteditable for better select-all performance
This commit is contained in:
parent
d2be9aeb0b
commit
34efe9d6f2
|
@ -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 New Issue