How to disable the context menu of Monaco?
3 answers
There are two ways to disable the contextMenu. One that you can define when creating the editor. Which is similar to the answer given by webdeb. But if at runtime you want to enable / disable the contextMenu, you can use the following function.
monaco.editor.updateOptions({
contextmenu: false;
});
+1
source to share