Slimsy syntax to convert images in RTE in a BlockG...
# help-with-umbraco
c
What would be the "Model" in the following?
Copy code
@SlimsyService.ConvertImgToResponsive(Model, "richTextBody", renderPicture:true, pictureSources: new []{"webp"})
When the block has two "Models":-
Copy code
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockGridItem<RichTextBlock, ForegroundAndBackgroundSettings>>
I've tried "RichTextBlock" and "RichTextBlock.Content" and "RichTextBlock.Content.Text" but it gets messy quickly. I'm assuming "richTextBody" is just the alias of whatever you've called the RTE in the element. In my case it'll be "text". Thanks.