Strip image caption along with image

Created on 2 March 2015, about 10 years ago
Updated 27 September 2024, 7 months ago

I'm using ckeditor with the image2 plugin that allows you to add a caption to an image. When I apply smart trim and ask it to strip HTML, it succesfully removes the image, but not the caption text. I would imagine that users will generally want to strip the caption along with the image.

I'd like to help with this if you think it is would be useful. I can see two ways of doing it. One is to strip captions automatically, which will keep the nice clean interface and is probably what almost all users will want, but is slightly restrictive. The other is to provide a checkbox under "Strip HTML" giving them the option to strip or keep image captions.

✨ Feature request
Status

Closed: outdated

Version

1.4

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom hoegrammer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024