Add width & height attributes to Gutenberg’s image output?


Images inserted via Gutenberg don’t have width & height attribute by default. I’d like to use those for lazy-loading purposes so image is positioned correctly.

Is there a hook or something to add width and height to output? Or should one extend the core block for this?

Runnick 3 weeks 0 Answers 4 views 0

Leave an answer