Merge pull request #7 from jyrkive/pass-editor-object-to-event-handlers

Pass the editor object to event handlers as a parameter