AI OnAI Off
Seems that you might want to read this recent thread: http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=79984
Thanks for the quick reply!
Yes, setting backing type to PropertyString for properties used by the built in dynamic content plugin or overriding RenderAsBlockElement when implementing your own plugin solved the problem. Thanks!
Hi,
When you add dynamic content in an editor it will add a bunch of divs as a placeholder for your dynamic content in the editor. Since the div tag is not allowed inside a p tag this will cause the insertion of dynamic content to close the p tag before it and start a new one after it which in turns results in line breaks.Example:Lets say you have the following code:
When you insert the dynamic content the resulting html will be this:
As you can see the fact that the dynamic content placeholder is rendered with divs causes tinyMCE to close the p tag just before it and open up another one right after it. (I have tried allowing divs inside of p tags by altering the config of tinyMCE but it does not seem to work.)My question is simply, is there any way you could alter the way the dynamic content placeholder is rendered so that it will render using spans instead for instance?