CMSB 2.53 - WYSIWYG Fix for Internet Explorer 11

7 posts by 4 authors in: Forums > CMS Builder
Last Post: February 13, 2014   (RSS)

By Chris - January 27, 2014 - edited: January 27, 2014

Hi All,

Microsoft's latest version of Internet Explorer has changed its User Agent string, which causes a lot of existing JavaScript code to misidentify it as Firefox. Unfortunately, this breaks some functionality: the version of TinyMCE in the latest CMSB can't open popup dialogs in IE11, which prevents links from being created or edited, as well as preventing the use of the popup HTML source code editor. TinyMCE has fixed these issues in their latest release, so the simplest solution is upgrading TinyMCE.

We're going to fix this for the next CMSB release, but if you need a fix right away, just follow these steps, which are exactly like a standard CMS upgrade (but they only affect the cmsAdmin/3rdparty/tiny_mce directory):

  1. Create a database backup by clicking "Backup" under: Admin > General Settings > Database Backup.
  2. Download /cmsAdmin/ and everything under it to a backup folder on your computer. Don't modify or change your backup files.
  3. Download the attached file and unzip it.
  4. Upload the /cmsAdmin/ folder from the zip file and all files under it.
  • Note: Only TinyMCE files will be overwritten.

IMPORTANT: IE11 users will also need to clear their cache for the changes to take effect. To do so, go to Tools (Gear Icon) > Internet Options > General > Delete..., make sure "Temporary Internet files and website files" is checked, and click Delete.

Let me know any questions, thanks!

All the best,
Chris

By ispro@me.com - February 5, 2014

I have a client on 2.53 who swears that she used to be able to type in an email address or a URL and it would be automatically recognized as such if it was in a WYSIWYG field, i.e. it would create mailto: and <a> code.   I tried upgrading tiny_mce as suggested, but it still is not happening.   Does this functionality exist or are we hallucinating?

Volodymyr

By Chris - February 5, 2014

Hi Volodymyr,

The feature you're describing is provided by the TinyMCE autolink plugin. I'm not sure if it's always been provided by that plugin or whether the feature used to be built-in and upgrading caused it to be disabled, so I can't answer your question -- but I can tell you how to get it (back)! :)

You'll want to add the autolink plugin to the list of TinyMCE plugins in cmsAdmin/lib/wysiwyg.php. Of course, you'll want to follow the instructions at the top of that file to make a "custom" copy of the file so your changes don't get overwritten when you upgrade. There are also two places in the file where you'll need to add the plugin. Both lines look like this, and you'll want to add the text in red:

     'plugins'   => 'inlinepopups,contextmenu,table,fullscreen,paste,media,spellchecker,autolink',

Hope this helps!

All the best,
Chris

By ispro@me.com - February 5, 2014

Sounds plausible, but when I did as you instructed, all that happened was that all the WYSIWYG fields were no longer rendered.   The field names were present, to the left, but no field box.   Must be something missing?

Volodymyr

By ispro@me.com - February 5, 2014

I tried the same thing, and it also worked.  Great job, northern penguin!

By Dave - February 13, 2014

Hi All,

We've just released 2.60, which includes this fix, so I'm going to lock this thread.

Thanks!

Dave Edis - Senior Developer
interactivetools.com