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

Images shown but lightbox not working #158

Closed wolfgang007 closed 2 years ago

wolfgang007 commented 2 years ago

Hello,

the images are shown correctly, but the lightbox doesn't work. Any ideas?

styles.content.textmedia.linkWrap.lightboxEnabled = 1 is set.

Output: <img alt="" data-alt-override="true" data-htmlarea-file-table="sys_file" data-htmlarea-file-uid="33" data-htmlarea-zoom="true" data-title-override="true" src="/fileadmin/_processed_/5/b/csm_asdf.jpg" style="" width="900" height="601">

Typo3 v11 & rte_ckeditor_image 11.0.2

picture

Thx for help.

agendartobias commented 2 years ago

Hey i got same problem in TYPO3 v.11 and rte_ckeditor_image 11.0.2

wolfgang007 commented 2 years ago

You have to include the static template before the Fluid Styled content template.

That worked for me ;-)

agendartobias commented 2 years ago

hmm tnx, now i get wrap around the image but where can i define css class for lightbox? at click image is opened in new tab

Gitsko commented 2 years ago

Hi @agendartobias, have you set the TYPO3 constant styles.content.imgtext.linkWrap.lightboxCssClass ? See also here

arnekolja commented 2 years ago

Same here with TYPO3 10 LTS and rte_ckeditor_image 10.2.5.

@agendartobias Have you been able to solve this somehow?

Gitsko commented 2 years ago

hi @arnekolja,

the TYPO3 constant styles.content.imgtext.linkWrap.lightboxCssClass does not help at this point ?

arnekolja commented 2 years ago

@Gitsko Never mind, I just found out that the still-in-use old version of the bootstrap_package was clearing lib.contentElement.settings.media.popup which caused the wrong behavior.

Gitsko commented 2 years ago

Good news, thanks for the information.