swisnl/jQuery-contextMenu

Right Click when text is highlighted

wegoodwin opened this issue · 1 comments

Hi,

I would like to have the contextmenu appear only when the user has selected a word. Is this possible?

You could use one of the open events to see if there is selected text on the page, then return false if it doesn't. Check out the docs for the events: https://swisnl.github.io/jQuery-contextMenu/docs.html#events