Skip to content

Commit

Permalink
Merge pull request #1758 from skateman/codemirror-focus
Browse files Browse the repository at this point in the history
Allow copying/focusing in disabled codemirror editor
  • Loading branch information
martinpovolny authored Jul 26, 2017
2 parents 6d406c3 + daf686b commit 3668a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/miq_application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down

0 comments on commit 3668a8a

Please sign in to comment.