re enable 'preview' in wiki#edit

- fixed JS check for tinyMCE
- before clicking on preview without tinyMCE raises an JS error and preview was not working