Project

General

Profile

Bug #24467 » rtehtmlarea_bugfix_16907_typo3_4-3.patch

Administrator Admin, 2011-01-08 06:35

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js (copie de travail)
this.setLinkAttributes(node, range, cur_target, cur_class, cur_title, imageNode, addIconAfterLink, additionalValues);
} else {
// Create new link
// Clean existing anchors otherwise Mozilla may create nested anchors
selection = this.editor._getSelection();
range = this.editor._createRange(selection);
// Selection may be lost when cleaning links
var bookmark = this.editor.getBookmark(range);
this.cleanAllLinks(node, range);
this.editor.selectRange(this.editor.moveToBookmark(bookmark));
if (HTMLArea.is_ie) {
// Clean images, keep links
if (HTMLArea.classesAnchorSetup) {
this.cleanAllLinks(node, range, true);
}
} else {
// Clean existing anchors otherwise Mozilla may create nested anchors
// Selection may be lost when cleaning links
var bookmark = this.editor.getBookmark(range);
this.cleanAllLinks(node, range);
this.editor.selectRange(this.editor.moveToBookmark(bookmark));
}
if (HTMLArea.is_gecko && !HTMLArea.is_safari && !HTMLArea.is_opera) {
this.editor._doc.execCommand('CreateLink', false, encodeURI(theLink));
} else {
(2-2/2)