0

When i set the content to 'a\nb' in tinymce, the edit in html shows 'ab', and when i set it again, through console. it shows as

a
b

why could this be happening? and how to fix it?

Amit
  • 3,952
  • 7
  • 46
  • 80
  • Here is a late solution: http://stackoverflow.com/questions/16104384/tinymce-remove-text-spaces-and-line-breaks – Jehy Jul 14 '15 at 12:32

1 Answers1

0

This might be because of of the cleanup functionality of tinymce. Using html will yield html without tinymce internal elements/attributs and cleaned content.

Thariama
  • 50,002
  • 13
  • 138
  • 166