Open kevin-appelt opened 1 year ago
@sk-foresite has that in her version (for 12) via the t3lib/class.t3lib_tcemain.php solved. it will not work. I looked at the core. It should now be resolved via the entryHTMLparser_db.
RTE.default.proc.entryHTMLparser_db = 1 RTE.default.proc.entryHTMLparser_db.tags.img{ current = 1 // always = 1 preUserFunc // userFunc = Netresearch\RteCKEditorImage\Controller....... }
I think it will go in that direction.
@sypets #188
We have 2 options:
as individual attributes or maybe just: data-htmlarea-file="{json}"
RTE.default.proc.entryHTMLparser_db = 1
RTE.default.proc.entryHTMLparser_db {
tags {
img.fixAttrib.src.userFunc = Netresearch\RteCKEditorImage\Database\RteImagesDbHook->transform_rte
img.fixAttrib.width.userFunc = Netresearch\RteCKEditorImage\Database\RteImagesDbHook->transform_rte
img.fixAttrib.height.userFunc = Netresearch\RteCKEditorImage\Database\RteImagesDbHook->transform_rte
img.fixAttrib.style.userFunc = Netresearch\RteCKEditorImage\Database\RteImagesDbHook->transform_rte
img.fixAttrib.data-htmlarea-file-uid.userFunc = Netresearch\RteCKEditorImage\Database\RteImagesDbHook->transform_rte
}
}
or 2: HTMLSanitizer
$GLOBALS['TYPO3_CONF_VARS']['SYS']['htmlSanitizer']['rtehtmlarea_images_db'] = \Netresearch\RteCKEditorImage\Sanitizer\RteImagesDbHook::class;
what do you mean?
The hook "t3lib/class.t3lib_parsehtml_proc.php->transformation" will be removed in TYPO3 v12. https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.2/Deprecation-92992-HookT3libclasst3lib_parsehtml_procphptransformation.html
Environment