Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

MIgrating from Dynamic content problem in TinyMCE

Vote:
 

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

#198649
Nov 02, 2018 8:33
Vote:
 

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

#206469
Aug 22, 2019 7:30
Vote:
 

Frederic did you find a solution?

#206470
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.

https://devblog.gosso.se/2019/05/use-blocks-as-legacy-dynamic-properties-poc/
* 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.