فهرست منبع

HUE-7096 [presentation] Add readOnly to the editors when in presentation mode

Enrico Berti 8 سال پیش
والد
کامیت
c538002
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 1 - 0
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -1131,6 +1131,7 @@ ${ sqlSyntaxDropdown.sqlSyntaxDropdown() }
         onBlur: saveTemporarySnippet,
         highlightedRange: result.statement_range,
         useNewAutocompleter: $root.useNewAutocompleter,
+        readOnly: $root.isPresentationMode(),
         aceOptions: {
           showLineNumbers: $root.editorMode(),
           showGutter: $root.editorMode(),