[BUGFIX] RTE: Inserting a table is broken
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 7 Mar 2012 17:59:19 +0000 (12:59 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Thu, 8 Mar 2012 21:37:20 +0000 (22:37 +0100)
Problem: The error is related to the color border settings.
Solution: HTMLArea.util.Color.colorToHex should return an empty string
rather than null.

Change-Id: I8dfeaca6fd9b2298c4120bdd4e3d4f76be5d3576
Resolves: #34634
Releases: 4.5, 4.6
Reviewed-on: http://review.typo3.org/9466
Reviewed-by: Stefan Neufeind
Reviewed-by: Jan Loderhose
Tested-by: Jan Loderhose
Reviewed-by: Henrik Ziegenhain
Tested-by: Henrik Ziegenhain
Reviewed-by: Benny Schimmer
Tested-by: Benny Schimmer
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js

index 5482357..b8969d8 100644 (file)
@@ -3990,7 +3990,7 @@ HTMLArea.util.Color = function () {
                        if (v.substr(0, 1) === '#') {
                                return v;
                        }
-                       return null;
+                       return '';
                },
                /*
                 * Select interceptor to ensure that the color exists in the palette before trying to select