Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

MIgrating from Dynamic content problem in TinyMCE


We are currently upgrading to EPiServer and of course timymce 2.6.1.

We have a lot of dynamic content i our Xhtml text, they appear as span in edit mode of tinymce and only a string of two or three caracters in view mode.

After migrating to blocks, there is a major problem, in edit mode of tinyMCE all the block shows within div tags.

TinyMCe creates then

tags around this div which is right since you can't have div in p tags to be compliant.

But the problem is obviously that the xhtml is now wrong with all those p tags around.

This was solved with the property "RenderAsBlockElement" set to false in dynamic content.

How can I make a block in edit mode in tinyMCE displays with span tags instead of div.

Before :

text tex text  texte tgeasa

After migrating :

text tex text

texte tgeasa

Nov 02, 2018 8:33

i would also like that, it would make blokcs in tinyMCE a lot more usefull

Aug 22, 2019 7:30

Frederic did you find a solution?

Aug 22, 2019 7:31
Frederic Thomas - Aug 22, 2019 9:39
We now use Luc Glossos solution but with an addition to allow only certains block types.
* 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.