Made functions use editor.id instead of editor