[BUGFIX] htmlArea RTE: htmlArea RTE: Removing class from link in IE8 won't work
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 20 Jul 2011 04:23:12 +0000 (00:23 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 20 Jul 2011 04:31:42 +0000 (06:31 +0200)
Removing a class on a link in the link dialogue works in Firefox and IE7 but not in IE8, due to IE8's new conformance to standard name for class attribute.

Change-Id: I304520071d428be5e6fd613252be74dcaadc8b91
Resolves: #28009
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/3426
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js

index c9e2290..68d75db 100644 (file)
@@ -344,11 +344,14 @@ HTMLArea.TYPO3Link = Ext.extend(HTMLArea.Plugin, {
                                        else node.removeAttribute("target");
                                if (cur_class.trim()) {
                                        node.className = cur_class.trim();
-                               } else { 
-                                       if (!Ext.isIE) {
+                               } else {
+                                       if (!Ext.isOpera) {
                                                node.removeAttribute('class');
+                                               if (Ext.isIE) {
+                                                       node.removeAttribute('className');
+                                               }
                                        } else {
-                                               node.removeAttribute('className');
+                                               node.className = '';
                                        }
                                }
                                if (cur_title.trim()) {