selectParentNode command

selectParentNode will try to get the parent node of the currently selected node and move the selection to that node.

Use the selectParentNode command

editor.commands.selectParentNode()