A Payload site, ready to clone

Placeholder: layered waves in teal

Images in a text get a size and an alignment

What changed

Placeholder: rounded tiles in soft blue and orange

An image placed in a rich text always showed at its file’s width, up to the text’s: a small logo imported from another site could fill the column, and no image could sit beside the text. Now each image in a text has a size, small, medium or full width, and an alignment, start, end or centre. Start and end float the image with the text flowing around it, like this one; they are the text’s own sides, left and right in a left-to-right language and swapped in a right-to-left one; on a phone every image sits on its own line. Small and medium are widths the theme sets, so they are the same on every page. The size is in the page’s HTML too, so a feed reader shows it; the alignment needs the site’s styles. Images saved before keep their look.

Where to see it

Features → Images in text shows the three placements. In the admin, click an image in a text, then its edit button: the drawer has Size and Alignment. Developers: template-site README, “Images in rich text: size and alignment”, and the token catalogue for the widths a theme can change.