Fixed bug #8996: htmlArea RTE: link to file not updated when changing case in file...
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 11 Aug 2008 22:17:46 +0000 (22:17 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 11 Aug 2008 22:17:46 +0000 (22:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3962 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js

index d76ae45..4a6d47f 100755 (executable)
--- 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  <ingo@typo3.org>
 
index 9a2e851..562027a 100644 (file)
@@ -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  <typo3@sjbr.ca>
 
index 2329e7f..266f273 100644 (file)
@@ -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();