Problem/Motivation

Not sure how hard this is to implement. But it would be nice if you have the content editor the power to toggle the lightbox on-off in the CKEditor. I can imagine there are use cases where editors don't want the lightbox to be present. So enabling the filter by default on all content might be problematic.

Steps to reproduce

N/A

Proposed resolution

Make an option somehow in CKEditor for enabling/disabling the photoswiper
Update the conditional logic to only apply the filter when the img element is marked to be a swiper.

Remaining tasks

MR

User interface changes

CKEditor change only.

API changes

N/A

Data model changes

N/A

Comments

bramdriesen created an issue.

ivnish’s picture

I'm using two text formats. "Full HTML" and "Full HTML with Photoswipe". Client can select

bramdriesen’s picture

That might be one way of doing it, but the site in question already has like 15 text formats. So not sure how smart it is to duplicate some of them to just check that one box :P