[BUGFIX] RTE: Tab key in Chrome inserts weird SPAN tags 58/20058/2
authorStanislas Rolland <typo3@sjbr.ca>
Sun, 21 Apr 2013 22:56:58 +0000 (18:56 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Sun, 21 Apr 2013 23:16:35 +0000 (01:16 +0200)
Problem: The problem arises when indent/outdent buttons are not
configured in toolbar. Default WebKit action inserts span tag with
special class.

Solution: Stop the event and avoid the default action: do nothing.

Fixes: #47274
Releases: 4.5, 4.7, 6.0, 6.1
Change-Id: I7077d300b7e766a38a004c743dd85ef33645ec9a
Reviewed-on: https://review.typo3.org/20058
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js

index 4c1c799..be8ec12 100644 (file)
@@ -1342,7 +1342,8 @@ HTMLArea.Iframe = Ext.extend(Ext.BoxComponent, {
                                return false;
                        }
                }
-               return true;
+               event.stopEvent();
+               return false;
        },
        /*
         * Handler for BACKSPACE and DELETE keys