Hi Alison,
Could you please confirm us, whether the code snippet demo does not work or code snippet is wrong. If demo is not working means then, in our online documentation, all the context menu demo has been working fine in our end. So please share us more details of your requirement i.e. in content menu documentation which section is not working, video demonstration of the issue or any simple sample replicating issue. This would help us to serve you better.
Regards
Aravind Ravi