Index: typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js =================================================================== --- typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (révision 6405) +++ typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail) @@ -64,6 +64,8 @@ */ HTMLArea.agt = navigator.userAgent.toLowerCase(); HTMLArea.is_opera = (HTMLArea.agt.indexOf("opera") != -1); +// Some operations require bug fixes provided by Opera 10 (Presto 2.2) +HTMLArea.is_opera9 = HTMLArea.is_opera && HTMLArea.agt.indexOf("Presto/2.1") != -1; HTMLArea.is_ie = (HTMLArea.agt.indexOf("msie") != -1) && !HTMLArea.is_opera; HTMLArea.is_safari = (HTMLArea.agt.indexOf("webkit") != -1); HTMLArea.is_gecko = (navigator.product == "Gecko") || HTMLArea.is_opera; Index: typo3/sysext/rtehtmlarea/htmlarea/plugins/UndoRedo/undo-redo.js =================================================================== --- typo3/sysext/rtehtmlarea/htmlarea/plugins/UndoRedo/undo-redo.js (révision 6405) +++ typo3/sysext/rtehtmlarea/htmlarea/plugins/UndoRedo/undo-redo.js (copie de travail) @@ -168,7 +168,7 @@ // Insert a bookmark if (this.editor.getMode() == "wysiwyg" && this.editor.isEditable()) { var selection = this.editor._getSelection(); - if ((HTMLArea.is_gecko && !HTMLArea.is_opera) || (HTMLArea.is_ie && selection.type.toLowerCase() != "control")) { + if ((HTMLArea.is_gecko && !HTMLArea.is_opera9) || (HTMLArea.is_ie && selection.type.toLowerCase() != "control")) { // Catch error in FF when the selection contains no usable range try { // Work around IE8 bug: can't create a range correctly if the selection is empty and the focus is not on the editor window