code: function( editor, buttonName, buttonLabel, commandName, command, menugroup, menuOrder )
  	{
  		editor.addCommand( commandName, command );
  
  		// If the "menu" plugin is loaded, register the menu item.
  		editor.addMenuItem( commandName,
  			{
  				label : buttonLabel,
  				command : commandName,
  				group : menugroup,
  				order : menuOrder
  			});
  	}
docs: Context menu constructing.