I want to be able to pull the first 150 or so characters from the first text field in a set of blocks on a page.
It’s for the preview text in an email newsletter. I’ve been doing it manually so far – ie a specific page level field populates a hidden div at the start of the html body. But this is leading to editor errors when they forget to update it.
The first block in the layout is usually an image block, so I want to skip over that and find the text content to extract the pre-header text. But there may be times when there is no image.