Try our conversational search powered by Generative AI!

Problem with default TinyMce value

Vote:
 

I have a custom property built like this one here:http://world.episerver.com/blogs/Henrik-Fransas/Dates/2014/11/how-to-use-tinymce-in-a-custom-property-the-episerver-wayclean-version/

I have noticed now that when there are no value inputed by the editors I get this value from tinymce:


I have found that that has something to do with the inline=true setting but I can not see that I get that value from the "standard" xhtml-property.
Read more here: http://stackoverflow.com/questions/20008384/tinymce-how-do-i-prevent-br-data-mce-bogus-1-text-in-editor

Anyone know how EPiServer handles this?

#115701
Jan 16, 2015 11:49
Vote:
 

Hi Henrik,

There is not so much magic going on collecting the value from the editor. We have added one plugin called epitrailing to make it easier to get the cursor to the end of the content and that does some cleaning up of empty tags. Apart from that most "fixing" of the html happens in the parser/serializer inside of TinyMCE when you call getContent()

#116291
Jan 28, 2015 8:08
* 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.