#864554 by Berdir, shenzhuxi | BenK: Added permission/setting to control the displays of input format selection and preview button.