Removed unneeded event handler from the editor component