Enabled text preview and added a preview type switcher.