Fix multi-tab editors

This fixes both issue #2 and #11 for me.  Please let me know if it works for you too?
Thanks!