21 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
22 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
23 use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
72 use CompileWithRenderStatic;
100 $this->registerArgument(
'parseFuncTSPath',
'string',
'Path to TypoScript parseFunc setup',
false,
'lib.parseFunc_RTE');
110 public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
112 $parseFuncTSPath = $arguments[
'parseFuncTSPath'];
113 if (TYPO3_MODE ===
'BE') {
116 $value = $renderChildrenClosure();
117 $contentObject = GeneralUtility::makeInstance(ContentObjectRenderer::class);
118 $contentObject->start([]);
119 $content = $contentObject->parseFunc($value, [],
'< ' . $parseFuncTSPath);
120 if (TYPO3_MODE ===
'BE') {
132 self::$tsfeBackup =
$GLOBALS[
'TSFE'] ??
null;
134 $GLOBALS[
'TSFE']->tmpl = new \stdClass();
135 $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
136 $configurationManager = $objectManager->get(ConfigurationManagerInterface::class);