Fix oversite/error that was causing the text editor modal open method to think it was in visual mode