top does not work if tinyMCE is in a frame, and parent works in all of my testing.  Perhaps was only a problem in early versions of TinyMCE 4?
Merge pull request #233 from hammond13/master

Closing window in TinyMCE 4