From daf686b072609465f834404da1f59fa075f1b645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hal=C3=A1sz?= Date: Wed, 26 Jul 2017 11:28:31 +0200 Subject: [PATCH] Allow copying/focusing in disabled codemirror editor --- app/assets/javascripts/miq_application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/miq_application.js b/app/assets/javascripts/miq_application.js index 3f350e7e24e..0fb0c44bf72 100644 --- a/app/assets/javascripts/miq_application.js +++ b/app/assets/javascripts/miq_application.js @@ -1171,7 +1171,7 @@ function miqInitCodemirror(options) { lineNumbers: options.line_numbers, matchBrackets: true, theme: 'eclipse', - readOnly: options.read_only ? 'nocursor' : false, + readOnly: options.read_only, viewportMargin: Infinity, });