enableWordClean on pasting does not work, if hidden button is not in showButtons and/or toolbarOrder
Quoting what Stan wrote to me via email:
I found that there is a bug in the RTE configuration processing: if hidden button "cleanword" is not present in the showButtons and/or the toolbarOrder properties, the feature is not enabled. Perhaps the bug was introduced in TYPO3 4.2.0
As a workaround, I added the following two lines in PageTSConfig
RTE.default.showButtons := addToList(cleanword)
RTE.default.toolbarOrder := addToList(cleanword)
No additional button will actually appear in the toolbar, but the feature will be enabled.
The feature uses an hidden button that must be added to the toolbar by the configuration script.
(issue imported from #M9935)
#7 Updated by christian rauch almost 4 years ago
I can confirm that this Bug is still present in Typo3 Version 7 LTS. It doesn't have to be in showButtons, but if it's missing in toolbarOrder it doesn't work. I think this one took me like 6 hours to figure out because it's also nowhere mentionend in the docs and basic cleaning works also without a request to htmlparser.