this fixes #4

added editor connect/disconnect events to give more control at
API/formatting level.
Merge pull request #7 from MisterJames/issue4

this fixes #4