Project

General

Profile

Bug #24467 » rtehtmlarea_bugfix_16907_trunk.patch

Administrator Admin, 2011-01-08 06:28

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 (Ext.isIE) {
// 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 (Ext.isGecko) {
this.editor.document.execCommand('CreateLink', false, encodeURI(theLink));
} else {
(1-1/2)