Fixed issue #9196: In htmlArea RTE, unable to create an external URL containing germa...
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 25 Aug 2008 15:45:21 +0000 (15:45 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 25 Aug 2008 15:45:21 +0000 (15:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4017 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/doc/manual.sxw
typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js

index 84ed19c..86b7dec 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-25  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed issue #9196: In htmlArea RTE, unable to create an external URL containing german umlauts
+
 2008-08-21  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bug #8826: calls to ini_set produces warnings
index e15fafd..2a8ef1d 100644 (file)
@@ -1,3 +1,7 @@
+2008-08-25  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed issue #9196: In htmlArea RTE, unable to create an external URL containing german umlauts
+
 2008-08-20  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Added feature #9201: Integrate support for definition list into htmlArea RTE
index 2741e55..ff23fa9 100644 (file)
Binary files a/typo3/sysext/rtehtmlarea/doc/manual.sxw and b/typo3/sysext/rtehtmlarea/doc/manual.sxw differ
index 266f273..f663be2 100644 (file)
@@ -1,7 +1,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 2005-2008 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
+*  (c) 2005-2008 Stanislas Rolland <typo3(arobas)sjbr.ca>
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -48,12 +48,12 @@ TYPO3Link = HTMLArea.Plugin.extend({
                 * Registering plugin "About" information
                 */
                var pluginInformation = {
-                       version         : "1.0",
+                       version         : "1.1",
                        developer       : "Stanislas Rolland",
-                       developerUrl    : "http://www.fructifor.ca/",
+                       developerUrl    : "http://www.sjbr.ca/",
                        copyrightOwner  : "Stanislas Rolland",
-                       sponsor         : "Fructifor Inc.",
-                       sponsorUrl      : "http://www.fructifor.ca/",
+                       sponsor         : "SJBR",
+                       sponsorUrl      : "http://www.sjbr.ca/",
                        license         : "GPL"
                };
                this.registerPluginInformation(pluginInformation);
@@ -159,7 +159,11 @@ TYPO3Link = HTMLArea.Plugin.extend({
                if (HTMLArea.is_gecko) {
                        this.editor._doc.execCommand("UnLink", false, null);
                }
-               this.editor._doc.execCommand("CreateLink", false, theLink);
+               if (HTMLArea.is_gecko && !HTMLArea.is_safari && !HTMLArea.is_opera) {
+                       this.editor._doc.execCommand("CreateLink", false, encodeURIComponent(theLink));
+               } else {
+                       this.editor._doc.execCommand("CreateLink", false, theLink);
+               }
                
                selection = this.editor._getSelection();
                range = this.editor._createRange(selection);
@@ -238,6 +242,9 @@ TYPO3Link = HTMLArea.Plugin.extend({
                                                node.insertBefore(imageNode.cloneNode(false), node.firstChild);
                                        }
                                }
+                               if (HTMLArea.is_gecko && !HTMLArea.is_safari && !HTMLArea.is_opera) {
+                                       node.href = decodeURIComponent(node.href);
+                               }
                                if (cur_target.trim()) node.target = cur_target.trim();
                                        else node.removeAttribute("target");
                                if (cur_class.trim()) {