Closed mcmulman closed 2 years ago
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList := addToList(img) is doing the trick, but the TS has to be included BEFORE fluid_styled_content TS, which seems wrong.
I have no glue about TS... so either this one line should be included at the end in your custom template or the whole extensions TS needs to be fixed.
Another solution would be, to remove the wrapping p tag within the linked image parser like here: issue-112_remove-wrapping-p-tag
RTE Images within links shouldn't be wrapped by an p tag, that's not valid HTML. One solution is to disable it via TypoScript Setup. Therefore the order of including the static TS file must be customizable.
Fixes #112