this fixes #4

added editor connect/disconnect events to give more control at
API/formatting level.