Project

General

Profile

Actions

Bug #53223

closed

Internet Explorer 11 is not recognized by rte htmlarea

Added by Steven Cardoso over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-10-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In IE11 the rte shows the plain text editor without toolbar etc. By turning on compatibility mode the rte shows up correctly.
Please add compatiblity for Internet Explorer 11.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #54124: Extend useragent-checks to include IE11Closed2013-12-01

Actions
Actions #1

Updated by Stefan Neufeind over 10 years ago

Check for supported browser is in typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js. Check for isIE comes from ExtJS.

Would it be possible for you to check if an upgrade of ExtJS might help you? Patch against current master is at: https://review.typo3.org/24883
But the release-notes also only point to "support for IE10". But let's see ...

Can you maybe use a JS-debugger and see inside htmlarea.js what value the variables like isIE etc. have?

Actions #2

Updated by Stefan Neufeind over 10 years ago

  • Status changed from New to Needs Feedback
Actions #3

Updated by Steven Cardoso over 10 years ago

Thank you for your help. I will take a look at it and report back here.

Actions #4

Updated by Sven W over 10 years ago

This phenomenon also occurs in Typo3 4.7 and 6.2

Actions #5

Updated by Martin Koppelaar over 10 years ago

Could this have anything to do with the changed useragent string of IE 11 ?

See: http://en.wikipedia.org/wiki/Internet_Explorer_11

It is now in the format of:
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

rv:11.0 instead of MSIE

Actions #6

Updated by Dirk Klimpel over 10 years ago

The same as #54122

Actions #7

Updated by Martin Koppelaar over 10 years ago

Actually, that one was dupe.

See:
http://forge.typo3.org/issues/54124
http://forge.typo3.org/issues/53818

This can be closed for as far as I can see.

Actions #8

Updated by Stefan Neufeind over 10 years ago

  • Status changed from Needs Feedback to Resolved
Actions #9

Updated by Guillaume Crico about 9 years ago

This is not really a dupe of #54122 or #53818.

This is related to the changed useragent string of IE 11 and ExtJS browser sniffing!

In the backend, there is a <meta http-equiv="X-UA-Compatible" content="IE=10" /> (typo3 6.2) or <meta http-equiv="X-UA-Compatible" content="IE=9" /> (typo3 4.7) , so the IE11 useragent string does not contain "like gecko" and is sniffed as "isGecko=false".
So the RTE works in the Typo3 backend.

But if you want to use the RTE in the frontend, and also want to stay in "IE=edge", the htmlarea fails to initialize because it is sniffed as "isGecko=true".

A short fix , in (typo3 4.7 and 6.2) file: typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js:

--- src: Ext.isGecko ? 'javascript:void(0);' : (Ext.isWebKit ? 'javascript: \'' + HTMLArea.htmlEncode(this.config.documentType + this.config.blankDocument) + '\'' : HTMLArea.editorUrl + 'popups/blank.html')
+++ // IE11 sometime pretends to be "like gecko". That's ok for Ext DOM related work, but not for the security model
+++ src: (Ext.isGecko && typeof document.baseURI !== 'undefined') ? 'javascript:void(0);' : (Ext.isWebKit ? 'javascript: \'' + HTMLArea.htmlEncode(this.config.documentType + this.config.blankDocument) + '\'' : HTMLArea.editorUrl + 'popups/blank.html')

I think that in the long term, rtehtmlarea should avoid using ExtJS "useragent string based" browser sniffing.

Actions #10

Updated by Lorenz Ulrich about 9 years ago

I agree with Guillaume. When using the RTE in the Frontend, one cannot just set IE=10 for a website. Guillaume's solution is very straight-forward until ExtJS is updated. document.baseURI doesn't exist in IE, therefore this solves the problem in the meantime.

Actions #11

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF