Static image in editors source i 6.15


#1

I’m trying to add some html to the source of a html area. But when I save the editor wraps my html with some new html and removes the class. Is this intended behaviour?

My code

<img alt="Jordbær" src="_/asset/no.myapp/images/strawberry.png" class="strawberry" />

Becomes

 <figure class="justify">< img alt="Jordbær" src="_/asset/no.myapp/images/strawberry.png" style="text-align:justify; width:100%" />
<figcaption style="text-align:left"></figcaption>
</figure>

#2

It works almost perfect in 6.14.x but you get a < p> wrapped around
< p>< img alt=“Jordbær” src="_/asset/no.myapp/images/strawberry.png" class=“strawberry” />


#3

Try to use the portal.processHTML view function


#4

if anyone else wonders this will be fixed in 6.15.2 :slight_smile:


#5

… which is available for down load now! :wink:


#6