Context Menu on Editor Canvas not populating #3761
Replies: 1 comment
-
@contextmenu="onRightClick" add this on the div of the grapeJsEditor. `const onRightClick = event => { if (target.classList.contains('gjs-frame')) { const { clientX, clientY } = event; if (contextMenu.value) { Do your stuff to open contextMenu and preventDefault. On the grapeJs div add this CSS #gjs * { Not sure if this is the optimal solution but I hope this help! Also I know this has been a while but maybe it can help someone else. |
Beta Was this translation helpful? Give feedback.
-
Hi @artf,
Im Currently trying to Implement my custom context menu on the Grapesjs Editor but its not allowing me to override the default Context menu. Could you please help me on this?
Thanks in Advance :)
Beta Was this translation helpful? Give feedback.
All reactions