cms icon indicating copy to clipboard operation
cms copied to clipboard

Can't put heading after image in Bard properly

Open dmgawel opened this issue 3 years ago • 1 comments

Bug description

Here's a video of my colleague struggling to insert a heading after an image:

https://user-images.githubusercontent.com/1322846/147747448-a09509a8-c011-4b18-9df8-bd076450df90.mp4

It seems to me that the fact that Image Node in Bard is inline interferes with a following heading and results in image being wrapped in heading tag, like so:

<h2><img src="" data-src="asset::assets::donut.jpg">This is a heading</h2>

How to reproduce

  1. Create Bard field
  2. Insert image
  3. Insert heading after image

Logs

No response

Versions

Statamic 3.2.28 Pro Laravel 8.61.0 PHP 8.0.11 doublethreedigital/duplicator 2.0.1

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

dmgawel avatar Dec 30 '21 11:12 dmgawel

This could maybe tackled together with https://github.com/statamic/ideas/issues/500

j3ll3yfi5h avatar Sep 14 '22 14:09 j3ll3yfi5h

Hey 👋

I'm unable to reproduce this issue on the latest version of Statamic. I can add headings after inline images as expected.

CleanShot 2023-11-21 at 12 41 05

I'm going to close this issue now. If you're still experiencing this issue, please leave a comment and we can re-open the issue. Thanks!

duncanmcclean avatar Nov 21 '23 12:11 duncanmcclean