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

Question

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?

0
Runnick 3 months 2020-12-30T20:10:31-05:00 0 Answers 4 views 0

Leave an answer

Browse
Browse