Hi,
In tinyMCE the code works and stays unchanged after altering the text afterwards.
I have tried below-mentioned versions also, which is non-HTML5, but same problem. All code is replaced with a simple IMG tag wrapped into P-tags if I alter the text afterwards.
As I want to wrap the text around the image, a RawHTML addon is not really useful. Also, I am using a text-addon insite TABS-addon.
Without HTML5 code, using Bootstrap
<div class="float-end text-center" style="margin: 0 0 10px 15px; max-width: 100%;">
<img class="img-fluid" style="display: block; margin: 0 auto;" src="/images/vores-karate/stilart-historie/gichin_funakoshi.jpg" alt="Den moderne grundlægger af karate - Gichin Funakoshi" width="270" height="500">
<div style="margin-top: 5px; font-size: 0.85em; color: #252525;">Gichin Funakoshi</div>
</div>
Without HTML5, without Bootstrap specific code
<div style="float: right; width: 270px; max-width: 100%; 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="max-width: 100%; height: auto;">
<div style="margin-top: 5px; font-size: 0.85em; color: #252525;">Gichin Funakoshi</div>
</div>