Occasionally, I embed images within the SP PageBuilder text editor, but want it with a caption.
I know, that I could move it to an image-addon, but I kind og like the text wrapping around.
Therefore, I use the below-mentioned code in the text-editors 'source code' mode and it works great.
However, if I correct anything in text and saves, the editor replaces this code with a simple image tag ruining the layout. What is the reason for that "cleanup"?
<figure class="float-end" style="margin:0 0 10px 15px;text-align:center;">
<img src="/images/vores-karate/stilart-historie/gichin_funakoshi.jpg"
alt="Den moderne grundlægger af karate - Gichin Funakoshi"
width="270" height="500"
style="display:block;">
<figcaption style="margin-top:5px;font-size:0.85em;color:#252525;">
Gichin Funakoshi
</figcaption>
</figure>