Project

General

Profile

Bug #24661 » rtehtmlarea_bugfix_17140_typo3_4-3.patch

Administrator Admin, 2011-01-20 22:23

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea-gecko.js (copie de travail)
* Create a range for the current selection
*/
HTMLArea.prototype._createRange = function(sel) {
if (HTMLArea.is_safari) {
if (typeof(sel) == "undefined") {
return this._doc.createRange();
}
// Older versions of WebKit did not support getRangeAt
if (HTMLArea.is_safari && !sel.getRangeAt) {
var range = this._doc.createRange();
if (typeof(sel) == "undefined") {
return range;
......
return range;
}
}
if (typeof(sel) == "undefined") return this._doc.createRange();
try {
return sel.getRangeAt(0);
} catch(e) {
(4-4/4)