bootstrap-wysiwyg / bootstrap3-wysiwyg

Simple, beautiful wysiwyg editor
http://bootstrap-wysiwyg.github.io/bootstrap3-wysiwyg/
MIT License
834 stars 264 forks source link

Issue with Existing Line Breaks #132

Open nick-harper opened 9 years ago

nick-harper commented 9 years ago

I have installed this on Text Areas that are getting existing data from a mySQL database.

However, in the database it has the line breaks so I assume it is using /r/n rather than br, so all of my content is put onto a single line.

Is there a way to change it or make it notice my existing line breaks?

gadlol commented 9 years ago

If you are using php you should use the nl2br : http://php.net/manual/en/function.nl2br.php