From 6ca920db6455f724976ee33cd174144c2040607e Mon Sep 17 00:00:00 2001 From: llj Date: Mon, 4 Mar 2019 15:20:28 +0800 Subject: [PATCH] [text file view] enable the text in viewer to be copied (#3032) --- frontend/src/view-file-text.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/view-file-text.js b/frontend/src/view-file-text.js index a39e3d0c6c..3655811b63 100644 --- a/frontend/src/view-file-text.js +++ b/frontend/src/view-file-text.js @@ -38,7 +38,8 @@ const options = { theme: 'default', textWrapping: true, lineWrapping: true, - readOnly: 'nocursor' + readOnly: true, + cursorBlinkRate: -1 // hide the cursor }; class ViewFileText extends React.Component {