Add _get_text_editor function to use preferred editor