Image removes p-tag ...?

hello,

in the panel i dropped an image into my textarea onto one of the paragraphs. gave the image a float class. works fine, but while styling i noticed that the paragraph where i dropped the image doesnt have the p-tag anymore. when i remove the image the p-tag returns.
am i doing st wrong?

(image: placeholder.jpg width: 250 class: floatl)

An image kirbytag is by default rendered within a figure element. A figure element may not be used inside a p element. So to nest an image inside a p tag, you would have to render the image element without the wrapping figure, which you can do by setting the kirbytext.image.figure option to false in your config.php. Note that this setting will affect all image kirbytags. If you want to apply this on a per image kirbytag basis, you would have to create a custom image kirbytag.

1 Like

thanks a lot!