vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   chrome not supporting WYSIWYG Editor (https://vborg.vbsupport.ru/showthread.php?t=327403)

z3r0 07-31-2019 07:19 AM

I've just had a quick look at the code and it looks like the bit that detects which browsers can use WYSIWYG is in includes/functions_editor.php starting line 165 (vb3.8.11 files)

Code:

if ($choice == 2) // attempting to use WYSIWYG, check that we really can
        {
                if (!is_browser('opera') OR is_browser('opera', '9.0'))
                {
                        // Check Mozilla Browsers
                        if (is_browser('firebird', '0.6.1') OR is_browser('camino', '0.9') OR (is_browser('mozilla', '20030312') AND !is_browser('firebird') AND !is_browser('camino')))
                        {
                                return 2;
                        }
                        else if (is_browser('ie', '5.5') AND !is_browser('mac'))
                        {
                                return 2;
                        }
                        else if (false AND is_browser('opera', '9.0'))
                        {
                                return 2;
                        }
                        else
                        {
                                return 1;
                        }
                }
                else
                {
                        // browser is incompatible - return standard toolbar
                        return 1;
                }
        }
        else
        {
                // return standard or no toolbar
                return $choice;
        }

On line 180 I tested changing "return 1;" to "return 2;" this allowed Chrome (and I would assume all other browsers) to use WYSIWYG mode, however, I didn't check anything other than basic functionality so couldn't say how compatible Chrome is in that mode.

lange 07-31-2019 11:32 AM

Thank you very much ! :up:

I do not think much about vbulletin right now.

I will test your code later and give you a feedback.

webmastersun 12-19-2019 11:09 AM

Quote:

Originally Posted by bestone96 (Post 2599972)
hey

i am wondering if there was any solution for supporting WYSIWYG Editor on google chrome!!


thanks

Check Chrome extensions that you installed for your Chrome
This can affect and made your WYSIWYG Editor not work.


All times are GMT. The time now is 08:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01032 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete