TinyMCE Valid Elements (newline issue)

for some reason my valid elements settings is switching all the <br> elements to <p></p> so i cant see multiple newlines …
i’ve deleted the following setting “-p[class|dir<ltr?rtl|style|title],” and looks like it worked… the problem is it won’t show any <p> elements…
how can i change my settings so it will work ?

this is my valid elements settings:

valid_elements : ""
				+"a[dir<ltr?rtl|href|id|style|target],"
				+"abbr[dir<ltr?rtl|style],"
				+"acronym[dir<ltr?rtl|id|style|title],"
				+"address[align|dir<ltr?rtl|style|title],"
				+"big[class|dir<ltr?rtl|lang|style|title],"
				+"blockquote[cite|class|dir<ltr?rtl|style|title],"
				+"br[class|style|title],"
				+"caption[class|dir<ltr?rtl|style|title],"
				+"cite[class|dir<ltr?rtl|style|title],"
				+"code[class|dir<ltr?rtl|style|title],"
				+"dd[class|dir<ltr?rtl|style|title],"
				+"del[cite|class|datetime|dir<ltr?rtl|style|title],"
				+"dfn[class|dir<ltr?rtl|style|title],"
				+"div[class|dir<ltr?rtl|style|title],"
				+"dl[class|compact<compact|dir<ltr?rtl|style|title],"
				+"dt[class|dir<ltr?rtl|id|lang|style|title],"
				+"em/i[class|dir<ltr?rtl|style|title],"
				+"h1[class|dir<ltr?rtl|style|title],"
				+"h2[class|dir<ltr?rtl|style|title],"
				+"h3[class|dir<ltr?rtl|style|title],"
				+"h4[class|dir<ltr?rtl|style|title],"
				+"h5[class|dir<ltr?rtl|style|title],"
				+"h6[class|dir<ltr?rtl|style|title],"
				+"img[alt=''|class|dir<ltr?rtl|height|width|name|src|style|title],"
				+"ins[cite|class|datetime|dir<ltr?rtl|style|title],"
				+"li[class|dir<ltr?rtl|style|title|type|value],"
				+"ol[class|dir<ltr?rtl|style|title|type],"
//				+"-p[class|dir<ltr?rtl|style|title]," <-- the problem is here
				+"pre[align|class|dir<ltr?rtl|id|lang|style|title|width],"
				+"s[class|dir<ltr?rtl|style|title],"
				+"small[class|dir<ltr?rtl|style|title],"
				+"span[class|dir<ltr?rtl|style|title],"
				+"strike[class|class|dir<ltr?rtl|style|title],"
				+"strong/b[class|dir<ltr?rtl|style|title],"
				+"sub[class|dir<ltr?rtl|style|title],"
				+"sup[class|dir<ltr?rtl|style|title],"
				+"u[class|dir<ltr?rtl|style|title],"
				+"ul[class|compact<compact|dir<ltr?rtl|style|title|type],"
				+"table[align<center?left?right|border|cellpadding|cellspacing|class|dir<ltr?rtl|height|style|width],"
				+"td[align<center?char?justify?left?right|class|colspan|dir<ltr?rtl|height|rowspan|style|valign<baseline?bottom?middle?top|width],"
				+"th[align<center?char?justify?left?right|class|colspan|dir<ltr?rtl|height|nowrap<nowrap|rowspan|scope<col?colgroup?row?rowgroup|style|valign<baseline?bottom?middle?top|width],"
				+"tr[align<center?char?justify?left?right|class|rowspan|dir<ltr?rtl|style|valign<baseline?bottom?middle?top]"

Are you using the same settings as your other question about TinyMCE? Because it looks like you have “force_br_newlines” set to to false. According to [url=http://www.tinymce.com/wiki.php/Configuration:force_br_newlines]the TinyMCE docs on force_br_newlines:

If you set this option to true, TinyMCE will force BR elements on newlines instead of inserting paragraphs. This option is set to false by default since paragraphs is a much better concept. BR elements should only be used when you really have to (mostly never). Also as of 3.x the forced_root_block option is enabled by default so if you really want to disable paragraphs disable that one as well.

The forced_root_block option makes sure that everything is surrounded by a block-level element, so your br’s might be wrapped with a <p>.

Does this help?

Yes thank you :slight_smile: