Hi there,
I’m looking at implementing something to deal with this sort of thing. You come across it when using visual builders as well, because they wrap image elements differently and don’t add the class to the actual IMG tag. Problem is, there is multi levels up to look at for a few cases.
I’ll be ding some more work on the plugin soon. I will possibly be making a custom block for SVG with some options in it. That would be the most intuitive I think.
But regardless of these decisions, the issue you’re facing will be addressed in some way or another 🙂
In the meantime, you can just use a code block or the HTML and just put your IMG tag in that.
I’ll mark this as resolved since there is a workaround and this feature is on the list of to do’s (hopefully I can roll it in to one of the next updates).
+1 for this feature. Gutenberg is now part of WordPress core and more and more people are starting to use it instead of the classic editor or third party visual editors, so Gutenberg should be supported.
Using an HTML block isn’t a great workaround as it doesn’t visually show the image in the editor to the user, which defeats the purpose of using Gutenberg.
Also, the “Automatically insert class?” option is not working with Gutenberg either.