Scopes the editor variable with var