Bug #21556 » rtehtmlarea_bugfix_12597_typo3_4-2.patch
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;
|
||
... | ... | |
// Insert a bookmark
|
||
if (this.getMode() == "wysiwyg" && this.isEditable()) {
|
||
var selection = this._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
|
- « Previous
- 1
- 2
- Next »