[BUGFIX] RTE: Incorrect tooltip of paste behaviour toggle in toolbar 26/36026/2
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 15 Jan 2015 16:39:24 +0000 (11:39 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Thu, 15 Jan 2015 16:42:00 +0000 (17:42 +0100)
The tooltip for the paste behaviour toggle button in the toolbar
is broken.

Releases: master
Resolves: #64302
Change-Id: Ib816771627aa037af7f7dcc3686d8499b2c9dfbb
Reviewed-on: http://review.typo3.org/36026
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/Plugins/PlainText.js

index 2eb2906..660570b 100644 (file)
@@ -538,9 +538,7 @@ define('TYPO3/CMS/Rtehtmlarea/Plugins/PlainText',
                        if (mode === 'wysiwyg' && this.editor.isEditable()) {
                                switch (button.itemId) {
                                        case 'PasteToggle':
-                                               button.setTooltip({
-                                                               title: this.localize((button.inactive ? 'enable' : 'disable') + this.currentBehaviour)
-                                               });
+                                               button.setTooltip(this.localize((button.inactive ? 'enable' : 'disable') + this.currentBehaviour));
                                                break;
                                }
                        }