Update medium-editor.js

small error
var event is undefined