Plugin Author
pepe
(@pputzer)
Sorry for the delay. I’ll look into this.
Plugin Author
pepe
(@pputzer)
Thanks for keeping me updated pepe!
Since I wanted to resolve the issue as fast as possible on my end, I ended up using a custom solution found here.
I don’t know if it will help you resolve the issue for your plugin, but I thought I’d leave it as a reference.
Cheers
Plugin Author
pepe
(@pputzer)
Hi @thequasar, can you tell me (or better: show me via another screen capture) the behaviour with a regular caption and without Media Credit enabled? Because on my test site with Twenty Twenty-One, the behaviour is the same (new line inserted before the image).
When I insert an image without a caption, the newline is inserted after the image.
-
This reply was modified 4 years, 11 months ago by
pepe.
Plugin Author
pepe
(@pputzer)
OK, after further experimentation, what might have irritated you is that an image with a credit always behaves like an image with a caption, even if there is no actual caption set.
@pputzer I’m not completely sure of the behaviors you mentioned, but the behavior that I was looking for was to be able to press the “enter”-key and add a new line after/below the image. (I will assume every image has credits added using the Media Credit plugin throughout this post.)
As you can see in the screencapture, in the first post, it shows that the new line is placed above the image, despite the cursor being placed after (to the right) of the image.
Thus, it’s not possible to create a new line that is below the image. If your last element is an image, it would mean it’s not possible to add more content below it.
In this screencapture where I’m using the native caption, you can see when I click the “enter”-key while the cursor is placed after the caption, it adds the new line below the image—and not above.
Hope gives a little more clarity.
-
This reply was modified 4 years, 11 months ago by
thequasar.
Plugin Author
pepe
(@pputzer)
Thank you, @thequasar. I’ve identified the issue and implemented a fix for the next version. I’d classify the inconsistent behavior between images with and without captions as a Core bug as well, do you want to file the Trac ticket?
That’s great to hear!
Since I’ve already implemented my own solution for my site, I have unfortunately not been actively investigating the issue myself. As such, with your new findings, feel free to go ahead and file the ticket!