netresearch / t3x-rte_ckeditor_image

Image support in CKEditor for the TYPO3 ecosystem
GNU Affero General Public License v3.0
56 stars 65 forks source link

WIP: [BUGFIX] #112: Remove wrapping p-tag from images via TS #129

Closed mcmulman closed 2 years ago

mcmulman commented 3 years ago

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

mcmulman commented 3 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