Project

General

Profile

Bug #21556 » rtehtmlarea_bugfix_12597_trunk.patch

Administrator Admin, 2009-11-15 17:15

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js (copie de travail)
*/
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;
typo3/sysext/rtehtmlarea/htmlarea/plugins/UndoRedo/undo-redo.js (copie de travail)
// 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
(1-1/2)