We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9cb4f commit 8c05a6cCopy full SHA for 8c05a6c
example/components/chakra-markdown.tsx
@@ -46,6 +46,12 @@ const ChakraMarkdown = React.memo<any>(({ content }) => {
46
glyphMargin: false, // Hide the glyph margin (left margin with icons)
47
contextmenu: false, // Disable default context menu
48
}}
49
+ onMount={(editor, monaco) => {
50
+ // Disable the right-click context menu
51
+ editor.onContextMenu((e) => {
52
+ e.event.preventDefault(); // Prevent default context menu
53
+ });
54
+ }}
55
/>
56
</Box>
57
);
0 commit comments