[TYPO3] HTMLArea not working in Firefox after update (2.0.0.3)

Tobias Erlacher tobi at 54tec.com
Thu Mar 22 10:29:55 CET 2007


Good morning,

i posted a fix for this on http://bugs.typo3.org/view.php?id=4870.

The error is there because the browser detection of rtehtmlarea does not  
work right in this case.
On https://bugzilla.mozilla.org/show_bug.cgi?id=374738 [^] the firefox  
developers showed that by changing the browser identification it can be  
fixed.
the problem lies in rtehtmlarea.js in line 85:
HTMLArea.is_wamcom = (HTMLArea.agt.indexOf("wamcom") != -1) ||  
(HTMLArea.is_gecko && (HTMLArea.agt.indexOf("1.3") != -1));

here the index of 1.3 is true because of "rv:1.8.1.3".

a quick fix is changing the line to
HTMLArea.is_wamcom = (HTMLArea.agt.indexOf("wamcom") != -1) ||  
(HTMLArea.is_gecko && ((HTMLArea.agt.indexOf("1.3") !=  
-1)&&(HTMLArea.agt.indexOf("1.8.1.3") == -1)));

have fun

tobias erlacher
www.typo3wizard.com


More information about the TYPO3-english mailing list