Try our conversational search powered by Generative AI!

Using blocks in TinyMCE editor (epi-contentfragment)


Hi all,

We're busy migrating multiple websites from CMS 11 to CMS 12 and one thing we're stuck on is drag-and-dropping blocks in TinyMCE editors. On the CMS 11 version this renders the block fine:

But on CMS 12 it just renders the title:

<div class="epi-contentfragment">Advertorial block banner div 1</div>

When debugging, it seems like the code runs through the BlockComponent and View, but somehow I guess it gets changed to the div above.

This happens to blocks that have a dedicated BlockComponent but also blocks using the DefaultBlockComponent.

Is there anything you need to enable for this to work between v11 and v12?

Edited, Dec 21, 2022 10:36

You have to render the block like this

@Html.PropertyFor(x => x.CurrentPage.ContentArea)

Oct 12, 2023 12:56
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.