From 274a37d97bbc8d87dd654ab26e8a8a692c39970b Mon Sep 17 00:00:00 2001 From: salexdv Date: Fri, 24 Jul 2020 23:23:29 +0300 Subject: [PATCH] =?UTF-8?q?readOnly=20=D0=BC=D0=BE=D0=B6=D0=B5=D1=82=20?= =?UTF-8?q?=D0=BD=D0=B5=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D1=83?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D0=BD=D0=B0=D0=B2=D0=BB=D0=B8=D0=B2=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=D1=81=D1=8F,=20=D0=BD=D0=BE=20=D0=B8=20=D1=81?= =?UTF-8?q?=D0=BD=D0=B8=D0=BC=D0=B0=D1=82=D1=8C=D1=81=D1=8F.=20changelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor.js b/src/editor.js index 1e4b67d..146bc29 100644 --- a/src/editor.js +++ b/src/editor.js @@ -72,9 +72,9 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit } - setReadOnly = function () { + setReadOnly = function (readOnly) { - editor.updateOptions({ readOnly: true }) + editor.updateOptions({ readOnly: readOnly }) }