TinyMCE how to remove empty space and paragraphs

Hi guys,

Often we are facing issue, when we are trying to populate text editor with a lot of text, which contain paragraphs and line breaks. And when we are trying to save text in database, for some reason text getting cut till specific word.

To solve above issue,  we have to after initializing tinyMCE.

Add some code:

 <script type="text/javascript" >
   selector : "textarea",
   entity_encoding: 'raw',
   forced_root_block : "",
   force_br_newlines : true,
   force_p_newlines : false,

That’s it.
If you have any questions, please comment them.