Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.absRefPrefix and Lightbox only working when changing TS #202

Open
claude27 opened this issue Dec 10, 2022 · 2 comments
Open

config.absRefPrefix and Lightbox only working when changing TS #202

claude27 opened this issue Dec 10, 2022 · 2 comments
Labels

Comments

@claude27
Copy link

claude27 commented Dec 10, 2022

Hi,

config.absRefPrefix and lightbox rendering are only working when changing TS lib.parseFunc to lib.parseFunc_RTE (rte_ckeditor_image/Configuration/TypoScript/ImageRendering/setup.txt).

I need config.abresRefPrefix for the source links in a newsletter, sent by the directmail newsletter. Only images which have absolute source links are shown in all mail clients.

For the lightboxes I use the extension jn_lightbox, but probably other lightbox extensions aren't working too without change of TS.

I think, #117 should be reverted, so rte_ckeditor_image/Classes/Controller/ImageLinkRenderingController.php could be reused and so absolute links and lightboxes would be reworking.

This would be the correct TS:
lib.parseFunc_RTE { tags.img = TEXT tags.img { current = 1 preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageRenderingController->renderImageAttributes } tags.a = TEXT tags.a { current = 1 preUserFunc = Netresearch\RteCKEditorImage\Controller\ImageLinkRenderingController->renderImages } nonTypoTagStdWrap.HTMLparser.tags.img.fixAttrib { allparams.unset = 1 data-htmlarea-file-uid.unset = 1 data-htmlarea-file-table.unset = 1 data-htmlarea-zoom.unset = 1 data-htmlarea-clickenlarge.unset = 1 data-title-override.unset = 1 data-alt-override.unset = 1 } } lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList := addToList(img)

@CybotTM
Copy link
Member

CybotTM commented Dec 12, 2022

#112 -> #116 -> #117

@CybotTM
Copy link
Member

CybotTM commented Dec 12, 2022

re-opened #112

@CybotTM CybotTM added the bug label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants