[BUGFIX] RTE: Table tag left over after cutting table in Firefox
authorStanislas Rolland <typo3@sjbr.ca>
Tue, 16 Aug 2011 19:26:46 +0000 (15:26 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 16 Aug 2011 19:35:27 +0000 (21:35 +0200)
Solution: In case of selecting a table in the status bar, select the
whole node.

Change-Id: Ie68210e49fcf9515cf9233b7495d0c440922debd
Resolves: #29023
Releases: 4.5, 4.6
Reviewed-on: http://review.typo3.org/4380
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js

index 87aaafe..1aa3872 100644 (file)
@@ -1650,7 +1650,7 @@ HTMLArea.StatusBar = Ext.extend(Ext.Container, {
                var editor = this.getEditor();
                element.blur();
                if (!Ext.isIE) {
-                       if (/^(img)$/i.test(element.ancestor.nodeName)) {
+                       if (/^(img|table)$/i.test(element.ancestor.nodeName)) {
                                editor.selectNode(element.ancestor);
                        } else {
                                editor.selectNodeContents(element.ancestor);