Example: Context Menu

Implementation of a context menu. Right-click a node and see what happens.
Also [space] key is supported to open the menu.

This example also demonstrates, how to copy or move branches and how to implement clipboard functionality.
A keyboard handler implements Cut, Copy, and Paste with Ctrl-X, Ctrl-C, Ctrl-V.

This sample uses the jQuery Context Menu Plugin by Cory S.N. LaViska. Visit A Beautiful Site for usage and more information.
NOTE:
I had to patch Cory's code in order to make it work. Please understand, that I am not able to support this plugin. There are many other context menus out there :-)

Selected node: -