Added lock to editor.