I've added a new item to the context menu in the media section - how can I pass the id of the selected node to my plugin controller?
I can use $routeParams in the controller, but that only works if the node is selected (ie displayed in the right-hand pane). I need to be able to right-click any node in the menu, and have the correct id passed.
Get node id from menu item
I've added a new item to the context menu in the media section - how can I pass the id of the selected node to my plugin controller?
I can use $routeParams in the controller, but that only works if the node is selected (ie displayed in the right-hand pane). I need to be able to right-click any node in the menu, and have the correct id passed.
appState.getMenuState('currentNode').id
does the job, for anyone else having the same issue.is working on a reply...