Home    |    GitHub Page    |    API    |    FAQ

How do we add menu entry to Right click menu on highlighted text in editor?

I'm trying to add menu item for right click on text in editing pane.

In plugins there is MenuItemLocation.Context for right click but it works only when clicking on item from Note List (so not on body text itself)

I've looked into ContentScriptType briefly but i'm not sure if doing CodeMirror plugin is a way to go.

Is there a way to extend right click menu?

It's not currently possible, but could be added. For now, I guess you could use a simple toolbar button and read the currently selected text?

Ok, it could work like this. Thank you for reply.