0

Simple props pass doesn't work.

<Editor
  ...
  onContextMenu={handleContextMenu}
/>

The only solution I see so far is adding custom block render function and handle context menu for each block. But this solution looks kinda ugly tho...

Another solution is simply put editor into div and bind context menu to it.

aiven
  • 3,775
  • 3
  • 27
  • 52

0 Answers0