Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //$showWysiwyg = !XenForo_Visitor::isBrowsingWith('mobile');
- /*Hack starts here - To remove it, just delete all code between and uncomment above line*/
- $options = XenForo_Application::get('options');
- $visitor = XenForo_Visitor::getInstance();
- $tinyfix_rte_mobile_option = ($options->tinymce_fix_mobile_opt_reverse) ? !$visitor->tinyfix_rte_mobile : $visitor->tinyfix_rte_mobile;
- if($options->tinymce_fix_mobile == 'no')
- {
- $showWysiwyg = !XenForo_Visitor::isBrowsingWith('mobile');
- }
- elseif($options->tinymce_fix_mobile == 'yes' && $tinyfix_rte_mobile_option)
- {
- $showWysiwyg = true;
- }
- else
- {
- //External addon
- $visitor = XenForo_Visitor::getInstance();
- if(!$visitor->getBrowser['isMobile'] || $visitor->getBrowser['isTablet'])
- {
- $showWysiwyg = true;
- }
- else
- {
- $showWysiwyg = false;
- }
- }
- /*Hack finishes here*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement