Make text editor configurable and guess if not specified