the old CMS treeview was always open when editing content and you could always get the menu ID of the page you were on, either from the treeview or the URL bar of the editor window.
The new one doesn't show you, the only way to get it is to go to ...