2 namespace TYPO3\CMS\Rtehtmlarea\Extension;
44 'pastetoggle' =>
'PasteToggle',
45 'pastebehaviour' =>
'PasteBehaviour'
57 return parent::main($configuration)
58 && $this->configuration[
'client'][
'browser'] !==
'opera';
69 $button =
'pastebehaviour';
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 .
'.current = "' . (isset(
$GLOBALS[
'BE_USER']->uc[
'rteCleanPasteBehaviour']) ?
$GLOBALS[
'BE_USER']->uc[
'rteCleanPasteBehaviour'] :
'plainText') .
'";';
77 return implode(LF, $jsArray);
88 $removeButtons = array();
90 if (!in_array(
'pastetoggle', $show)) {
91 $removeButtons[] =
'pastebehaviour';
95 $removeButtons[] =
'pastebehaviour';
97 return array_diff($show, $removeButtons);