[opencms-dev] Firefox 17 breaks RTE

Rodriguez, Adrian A.Rodriguez at comundus.com
Thu Nov 29 16:49:29 CET 2012


Hello,

I was having the same problem in OpenCms 7.0.1 with FCKEditor 2.4.3 and was able to solve it based on the solutions proposed in this Bug Report: https://bugzilla.mozilla.org/show_bug.cgi?id=814019

Basically, I changed the mentioned line 27 of the file /system/workplace/resources/editors/fckeditor/editor/js/fckeditorcode_gecko.js (The one which starts with var s=navigator.userAgent.toLowerCase(); ). Instead of the statement:

A.IsGecko10=((B<20051111)||(/rv:1\.7/.test(s)));

... I changed it to:

A.IsGecko10=((B<20051111&&B>19000000)||(/rv:1\.7/.test(s)));

... and it worked again.

This line comes from the source file /system/workplace/resources/editors/fckeditor/editor/_source/internals/fckbrowserinfo.js

Be careful when changing fckeditorcode_gecko.js directly in the OpenCms Editor, because the entities like 
 appearing in the line 30 will be converted to the corresponding character when saving the file. To overcome this, you can replace all occurences of '&#' with '&#'.

Greetings,
________________________________________  

Adrián Rodríguez
IT-Berater
    
comundus GmbH
Schüttelgrabenring 3, D-71332 Waiblingen
Zentrale      +49 7151-944-2110
Durchwahl     +49 7151-944-2120
Fax           +49 7151-944-2139
E-Mail a.rodriguez at comundus.com
Internet www.comundus.com
 
Geschäftsführer Klaus Hillemeier  
Amtsgericht Stuttgart, HRB 264290
         
comundus ist ein Unternehmen der IT EXCELLENCE Group
________________________________________                        

 comundus bei Facebook  Achtung: Neue Festnetznummern



-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Tobias Herrmann
Gesendet: Donnerstag, 22. November 2012 16:35
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Firefox 17 breaks RTE

Hi Georgi,

I haven't tested the FCKEditor of that version with Firefox. The issue you describe seems to be a general problem with Firefox 17 and FCKEditor. Maybe Mozilla changed some API methods again, we had several issues like this in the past.
I would recommend updating OpenCms to version 7.5.4 or 8.x, if that is not an option, you could try updating the FCKEditor only. But I'm not sure if that would work.

Greetings, Tobias

--

Alkacon Software GmbH - The OpenCms Experts

http://www.alkacon.com
http://www.opencms.org

Am 22.11.2012 16:22, schrieb Georgi Naplatanov:
> Hi Tobias,
>
> I have an old OpenCms 7.0.5 installation with FCKEditor. I modified /system/workplace/editors/fckeditor/editor_configuration.xml as you wrote, but editor doesn't work with FireFox 17 (grey area on the editor place). Is it a known issue with FireFox 17 ?

>
> Best regards
> Georgi
>
> On 11/22/2012 04:12 PM, Tobias Herrmann wrote:
>> Hi Christoph,
>>
>> to fix this problem you have to edit the files 
>> /system/workplace/editors/fckeditor/editor_configuration.xml and 
>> /system/workplace/editors/tinymce/editor_configuration.xml and 
>> replace the <useragent> node with
>>
>> <useragents>
>> <agent>^Mozilla/[45]\.0 \(compatible; MSIE .*\)$</agent>
>> <agent>^Mozilla/5\.0 \(.*\) Gecko/20\d* .*$</agent>
>> <agent>^Mozilla/5\.0 \(.*\) Gecko/\d+\.\d+ .*$</agent>
>> <agent>^Mozilla/5\.0 \(.*\).*Chrome.*$</agent>
>> <agent>^Mozilla/5\.0 \(.*\).* Version/.* Safari.*$</agent> 
>> </useragents>
>>
>> Greetings, Tobias
>>
>> --
>>
>> Alkacon Software GmbH - The OpenCms Experts
>>
>> http://www.alkacon.com
>> http://www.opencms.org
>>
>> Am 22.11.2012 15:04, schrieb Christoph Fr hlich:
>>> Hi,
>>>
>>> it seems that Firefox 17 breaks the rich text editor in OpenCms 8.0.4.
>>>
>>> Editing our content types with Firefox 16 shows the rte as expected, 
>>> with buttons on top and formatted text.
>>>
>>> With Firefox 17 the text field becomes a vanilla html text area, 
>>> showing all html tags.
>>>
>>> Is anyone else experiencing this?
>>>
>>> Regards
>>> Christoph
>>>
>>>
>>>
>>> _______________________________________________
>>> This mail is sent to you from the opencms-dev mailing list To change 
>>> your list options, or to unsubscribe from the list, please visit 
>>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>>
>>>
>>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list To change 
>> your list options, or to unsubscribe from the list, please visit 
>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list To change 
> your list options, or to unsubscribe from the list, please visit 
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your list options, or to unsubscribe from the list, please visit http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list