2 namespace TYPO3\CMS\Rtehtmlarea\Extension;
45 'cleanword' =>
'CleanWord'
56 return parent::main($configuration)
57 && $this->configuration[
'thisConfig'][
'enableWordClean']
58 && !is_array($this->configuration[
'thisConfig'][
'enableWordClean.'][
'HTMLparser.']);
69 $button =
'cleanword';
70 if (in_array($button, $this->toolbar)) {
71 if (!is_array($this->configuration[
'thisConfig'][
'buttons.']) || !is_array($this->configuration[
'thisConfig'][
'buttons.'][($button .
'.')])) {
72 $jsArray[] =
'RTEarea[editornumber].buttons.' . $button .
' = new Object();';
74 $jsArray[] =
'RTEarea[editornumber].buttons.' . $button .
' = {"hotKey" : "' . ($this->configuration[
'thisConfig'][
'enableWordClean.'][
'hotKey'] ? $this->configuration[
'thisConfig'][
'enableWordClean.'][
'hotKey'] :
'0') .
'"};';
76 return implode(LF, $jsArray);