From: Stanislas Rolland Date: Mon, 11 Aug 2008 22:17:46 +0000 (+0000) Subject: Fixed bug #8996: htmlArea RTE: link to file not updated when changing case in file... X-Git-Tag: TYPO3_4-3-0alpha1~276 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/f4b955b79cf30102c32fecd2bf9e4452f95ae311 Fixed bug #8996: htmlArea RTE: link to file not updated when changing case in file name git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3962 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index d76ae45e526..4a6d47f628b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ * Follow-up for issue #8673: htmlArea RTE drag n drop tab of image insertion not functional * Follow-up for issue #8717: Add suggested doc extension to htmlArea RTE ext_emconf.php + * Fixed bug #8996: htmlArea RTE: link to file not updated when changing case in file name 2008-08-11 Ingo Renner diff --git a/typo3/sysext/rtehtmlarea/ChangeLog b/typo3/sysext/rtehtmlarea/ChangeLog index 9a2e85131bf..562027a31cd 100644 --- a/typo3/sysext/rtehtmlarea/ChangeLog +++ b/typo3/sysext/rtehtmlarea/ChangeLog @@ -2,6 +2,7 @@ * Follow-up for issue #8673: htmlArea RTE drag n drop tab of image insertion not functional * Follow-up for issue #8717: Add suggested doc extension to htmlArea RTE ext_emconf.php + * Fixed bug #8996: htmlArea RTE: link to file not updated when changing case in file name 2008-08-04 Stanislas Rolland diff --git a/typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js b/typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js index 2329e7fd3d2..266f27334f7 100644 --- a/typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js +++ b/typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js @@ -154,7 +154,11 @@ TYPO3Link = HTMLArea.Plugin.extend({ range = this.editor._createRange(selection); this.cleanAllLinks(node, range, true); } - + // In FF, if the url is the same except for upper/lower case of a file name, the link is not updated. + // Therefore, we remove the link before creating a new one. + if (HTMLArea.is_gecko) { + this.editor._doc.execCommand("UnLink", false, null); + } this.editor._doc.execCommand("CreateLink", false, theLink); selection = this.editor._getSelection();