Bug #24661 » rtehtmlarea_bugfix_17140_typo3_4-3.patch
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) {
|
- « Previous
- 1
- 2
- 3
- 4
- Next »