When i set the content to 'a\nb' in tinymce, the edit in html shows 'ab', and when i set it again, thr开发者_StackOverflow社区ough console. it shows as
a
b
why could this be happening? and how to fix it?
This might be because of of the cleanup functionality of tinymce. Using html will yield html without tinymce internal elements/attributs and cleaned content.
精彩评论