Remove wrapping <p> tags around inserted images

Created on 13 September 2025, about 1 month ago
Updated 16 September 2025, about 1 month ago

Problem/Motivation

We experience a constant annoyances when inserting images in the CKeditor because it seems to insist on wrapping any inserted images in <p> tags.

We always end up with…

<p><img></p>

When all we really want is…

<img>

Can this module help with that or is there another approach we can take to avoid having to go into source view every time and un-wrap them?

Any ideas very welcome, it can't be just us!

Thanks

💬 Support request
Status

Needs review

Version

3.1

Component

Miscellaneous

Created by

🇬🇧United Kingdom SirClickALot Somerset

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.

No activities found.

Production build 0.71.5 2024