2 namespace TYPO3\CMS\Rtehtmlarea\Controller;
74 $this->doc->JScode =
'';
75 $this->modData =
$GLOBALS[
'BE_USER']->getModuleData($this->moduleName,
'ses');
78 $this->modData[
'openKeys'][$parts[1]] = $parts[0] ==
'O' ? 1 : 0;
79 $GLOBALS[
'BE_USER']->pushModuleData($this->moduleName, $this->modData);
95 $response->
getBody()->write($this->content);
96 $response = $response->
withHeader(
'Content-Type',
'text/plain; charset=utf-8');
110 header(
'Content-Type: text/plain; charset=utf-8');
137 $thisConfig = \TYPO3\CMS\Backend\Utility\BackendUtility::RTEsetup($RTEsetup[
'properties'], $RTEtsConfigParts[0], $RTEtsConfigParts[2], $RTEtsConfigParts[4]);
139 if (is_array($thisConfig[
'enableWordClean.'])) {
140 $HTMLparserConfig = $thisConfig[
'enableWordClean.'][
'HTMLparser.'];
141 if (is_array($HTMLparserConfig)) {
143 $HTMLparserConfig = $HTMLParser->HTMLparserConfig($HTMLparserConfig);
146 if (is_array($HTMLparserConfig)) {
147 $html = $HTMLParser->HTMLcleaner($html, $HTMLparserConfig[0], $HTMLparserConfig[1], $HTMLparserConfig[2], $HTMLparserConfig[3]);
149 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][$this->extKey][$this->prefixId][
'cleanPastedContent'])) {
150 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][$this->extKey][$this->prefixId][
'cleanPastedContent'] as $classRef) {
152 if (method_exists($hookObj,
'cleanPastedContent_afterCleanWord')) {
153 $html = $hookObj->cleanPastedContent_afterCleanWord($html, $thisConfig);
170 if (isset($HTMLparserConfig[
'allowTags'])) {
172 $HTMLparserConfig[
'allowTags'] .=
',span';
175 $HTMLparserConfig[
'allowTags'] =
'span';
178 if (isset($HTMLparserConfig[
'noAttrib']) &&
GeneralUtility::inList($HTMLparserConfig[
'noAttrib'],
'span')) {
182 if (isset($HTMLparserConfig[
'removeTags']) &&
GeneralUtility::inList($HTMLparserConfig[
'removeTags'],
'span')) {
186 if (is_array($HTMLparserConfig[
'tags.'])) {
188 if (isset($HTMLparserConfig[
'tags.'][
'span']) && !$HTMLparserConfig[
'tags.'][
'span']) {
189 $HTMLparserConfig[
'tags.'][
'span'] = 1;
191 if (is_array($HTMLparserConfig[
'tags.'][
'span.'])) {
192 if (isset($HTMLparserConfig[
'tags.'][
'span.'][
'allowedAttribs'])) {
193 if (!$HTMLparserConfig[
'tags.'][
'span.'][
'allowedAttribs']) {
194 $HTMLparserConfig[
'tags.'][
'span.'][
'allowedAttribs'] =
'id';
196 $HTMLparserConfig[
'tags.'][
'span.'][
'allowedAttribs'] .=
',id';
199 if (isset($HTMLparserConfig[
'tags.'][
'span.'][
'fixAttrib.'][
'id.'][
'unset'])) {
200 unset($HTMLparserConfig[
'tags.'][
'span.'][
'fixAttrib.'][
'id.'][
'unset']);