Get parent story of a table, row, column or cell
In the script I'm working on, I need to get the parent story of the selection. This will typically be a Text object which is super easy with `mySelection.parentStory`. But in many cases it could be an object that doesn't have a parentStory method, like a table, row, column or cell. If it's a table, I worked out that I can get the parent story with `mySelection.storyOffset.parentStory`, but this doesn't work for rows, columns or cells (which have no storyOffset method). I could try navigating up the DOM tree with various checks and balances, and maybe end up with something like `mySelection.parent.parent.storyOffset.parentStory`, but that seems like a crazy way to do something that I'd have thought would be simple.
Is there a simpler way?
