See Post #12 for a different solution, it lets the editor work in IE10
If you are an Admin of a VB4 site with the ckeditor (all versions since 4.1.4 I believe) you probably know that the VB4 editor is not compatible with Internet Explorer 10 (IE10) web browsers.
As IE10 becomes more popular this is a bigger issue for site administrators.
The good news is the "Standard Editor" in VB 4.x does work, it is only the WYSIWYG editor with the problem.
This simple singe plugin mod will force IE10 users, and only IE10 users to the Standard Editor no matter what they have chosen in their settings.
This should prevent complaints from users about the editor not working properly.
We hope this issue will get fixed in a future VB4 version, maybe 4.2.1, maybe later, at that time you can remove this product.
No documentation, no settings, just import the XML file and it is active, disable or remove the product and it stops working.
Installation Instructions:
Log into your Admin CP
Go to Add/Import Product under "Plugins & Products" on the side menu.
Click the "Choose File" button to find the attached product xml file.
Press "Import"
Done.
The new Microsoft Edge browser doesn't like the wysiwyg mode on any of my vb4 sites (editor will not work without enter being pressed first), with a tweak to this mod you can force standard mode on Edge and patch the problem until a better solution is found.
Change
Code:
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/6.0'))
To
Code:
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Edge'))
Note - this is only any good if you are not using this mod to force standard editor for IE.
The new Microsoft Edge browser doesn't like the wysiwyg mode on any of my vb4 sites (editor will not work without enter being pressed first), with a tweak to this mod you can force standard mode on Edge and patch the problem until a better solution is found.
Change
Code:
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/6.0'))
To
Code:
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Edge/12'))
Note - this is only any good if you are not using this mod to force standard editor for IE.
I'm not clear what you mean by your last statement...
You seem to be saying we can make your modifications to this product to force standard editor for Edge, but then you say it's only good if you are NOT using this mod?
{ if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/6.0')) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Edge/12')) $vbulletin->userinfo['showvbcode'] = 1; //This is the standard editor }
{ if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/6.0')) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Edge/12')) $vbulletin->userinfo['showvbcode'] = 1; //This is the standard editor }
I tried this multiple browser patch and I get a boolean error in "includes"...
Quote:
PHP error: <b>Parse error</b>: syntax error, unexpected T_BOOLEAN_OR in <b>/usr/www/apache/includes/class_bootstrap.php(103) : eval()'d code</b> on line <b>214</b><br />
Edge has changed since I posted the original bit of code, the following is how the plugin needs to look now to force edge to work correctly.
Code:
//This plugin checks if the user is using Edge, if he or she is, it forces use of the standard editor
global $vbulletin;
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Edge'))
$vbulletin->userinfo['showvbcode'] = 1; //This is the standard editor
}