2 namespace TYPO3\CMS\Rtehtmlarea\Extension;
46 'cleanword' =>
'CleanWord'
57 return parent::main($configuration)
58 && $this->configuration[
'thisConfig'][
'enableWordClean']
59 && is_array($this->configuration[
'thisConfig'][
'enableWordClean.'][
'HTMLparser.']);
70 $button =
'cleanword';
71 if (in_array($button, $this->toolbar)) {
72 if (!is_array($this->configuration[
'thisConfig'][
'buttons.']) || !is_array($this->configuration[
'thisConfig'][
'buttons.'][($button .
'.')])) {
73 $jsArray[] =
'RTEarea[editornumber].buttons.' . $button .
' = new Object();';
75 $jsArray[] =
'RTEarea[editornumber].buttons.' . $button .
'.pathParseHtmlModule = ' .
GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl(
'rtehtmlarea_wizard_parse_html')) .
';';
76 $jsArray[] =
'RTEarea[editornumber].buttons.' . $button .
'.hotKey = "' . ($this->configuration[
'thisConfig'][
'enableWordClean.'][
'hotKey'] ?:
'0') .
'";';
78 return implode(LF, $jsArray);