From 34efe9d6f2bef3b0c37e48dc9c290085d08aa33c Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 6 Mar 2018 06:22:11 -0500 Subject: [PATCH] [codemirror] use inputStyle=contenteditable for better select-all performance --- src/js/1p-filters.js | 1 + src/js/asset-viewer.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/js/1p-filters.js b/src/js/1p-filters.js index fc96d595a..cc6c9b86a 100644 --- a/src/js/1p-filters.js +++ b/src/js/1p-filters.js @@ -36,6 +36,7 @@ var cmEditor = new CodeMirror( document.getElementById('userFilters'), { autofocus: true, + inputStyle: 'contenteditable', lineNumbers: true, lineWrapping: true, styleActiveLine: true diff --git a/src/js/asset-viewer.js b/src/js/asset-viewer.js index 70615291d..fc0aa9092 100644 --- a/src/js/asset-viewer.js +++ b/src/js/asset-viewer.js @@ -46,6 +46,7 @@ document.getElementById('content'), { autofocus: true, + inputStyle: 'contenteditable', lineNumbers: true, lineWrapping: true, readOnly: true,