I use TinyMce to insert / edit text from a database, but I don’t know why
missing. There are no new lines, ev...">

TinyMce does not insert <br/">

I use TinyMce to insert / edit text from a database, but I don’t know why <br /> missing. There are no new lines, even if I press ENTER or SHIFT + ENTER.

TinyMce init:

 tinyMCE.init({ mode : "textareas", theme : "simple", force_p_newlines : false, force_br_newlines : true, convert_newlines_to_brs : false }); 
+4
source share
1 answer

According to TinyMCE documentation for force_br_newlines :

This parameter has been deprecated since version 3.5, force-forced_rocoid: false instead to control p vs br.

Starting with version 3.0a1, forced_root_block enabled by default. The documentation also says that if you disable this option, Enter will create <br /> , and Shift + Enter will create <p> .

Try the following:

 tinyMCE.init({ mode : "textareas", theme : "simple", forced_root_block : false, }); 
+13
source

All Articles