Browse Source

Disable monaco-editor's context menu

pull/6/head
Menci 6 years ago
parent
commit
efa3d5a1c4
  1. 6
      static/self/monaco-editor.js

6
static/self/monaco-editor.js

@ -605,7 +605,8 @@ require(['vs/editor/editor.main'], function () {
vertical: 'hidden'
},
overviewRulerBorder: false,
hideCursorInOverviewRuler: true
hideCursorInOverviewRuler: true,
contextmenu: false
});
};
@ -644,7 +645,8 @@ require(['vs/editor/editor.main'], function () {
verticalScrollbarSize: 10
},
overviewRulerBorder: false,
hideCursorInOverviewRuler: true
hideCursorInOverviewRuler: true,
contextmenu: false
});
input.form.addEventListener('submit', function () {

Loading…
Cancel
Save