Is there a way to automatically add a class to an image tag whenever a user adds an image in Episerver? I saw some posts about adding a class dropdown to the advimage dialog in the TinyMCE but I need to automatically add the class behind the scenes. I also need to change the src attribute name to data-src. Is this possible?
you could do some black magic with XHtml property rendering. here is described solution with images and converting them into <picture> tag.
Thanks. I was actually able to tap into the PublishEventInitializer class and alter the value before publishing.