Try our conversational search powered by Generative AI!

content block editing in TinyMCE is broken if XhtmlString type has display template

Vote:
 

Hi,

I've found that editing of content blocks is broken when XhtmlString has a display template. The template doesn't do anything fancy; it renders the property using the EPiServer.Web.Mvc.Html.XhtmlStringExtensions.XhtmlString extension and conditionally adds a wrapper div. It should be possible to replicate the issue with a display template that just calls the extension. I noticed the issue in EPiServer 8.5, update 63.

Is this a (known) bug? Has anyone found a way around it that does not involve removing the display template? I tried adding FullRefreshPropertiesMetaData, though this was a long shot since the editing breaks in All properties view as well.

See also http://world.episerver.com/Blogs/Linus-Ekstrom/Dates/2013/12/Customizing-the-look-and-behavior-in-the-UI-for-your-content-types

The issue is mentioned in the comments for https://www.epinova.no/en/blog/arve-systad/dates/2014/7/custom-rendering-of-content-in-xhtmlstring-areas/. 

#122215
May 28, 2015 12:48
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.