Skip to content
Discussion options

You must be logged in to vote

The data.Html(...) does a lot more, incl. image-resizing and similar. For this to work reliably, it must have the div with class=wysiwyg-container.

You have 3 options

  1. put another div around it

  2. recommended give it another container - to which it will add the class-wysiwyg, something like

@using ToSic.Razor.Blade // https://razor-blade.net/
@{
   // use RazorBlade to create a custom container
   // https://razor-blade.net/api/ToSic.Razor.Html5.Div.html
   var container = Tag.Div().Class("prose 2xl:prose-xl 2xl:prose-p:leading-normal 2xl:prose-h2:!text-4xl");
}

@Content.Html("Text", container: container)
  1. use basic string manipulation, something like:
@Html.Raw(Content.Html(...).ToSt…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ajplopez
Comment options

ajplopez Feb 12, 2026
Author Sponsor

Answer selected by ajplopez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants