Project

General

Profile

Bug #21703 » rtehtmlarea_bugfix_12782_typo3_4-3.patch

Administrator Admin, 2009-12-11 16:28

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js (copie de travail)
if (HTMLArea.is_gecko && node != null && /^a$/i.test(node.nodeName)) {
// If the class attribute is not removed, UnLink folowed by CreateLink will create a span element inside the new link
node.removeAttribute("class");
// Moreover, the selection is sometimes lost after the unlink operation
selection = this.editor._getSelection();
range = this.editor._createRange(selection);
var bookmark = this.editor.getBookmark(range);
this.editor._doc.execCommand("UnLink", false, null);
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));
(4-4/6)