Theme Advanced Styles in Visual Editor and Paragraphs

If you always want <br/> instead of <p> for newlines you can change the TinyMCE configuration:

forced_root_block: false,
force_br_newlines: true,
force_p_newlines : false,

I think you cannot do this based on the context (use <br/> when in class="box_note", <p> otherwise), but it is an interesting question for the TinyMCE forum. Shift+Enter is indeed the standard way to differentiate between paragraph and line endings.

Leave a Comment