in TinyMCE-第2页回答 - 易学问答
in TinyMCE
I have initialised TinyMCE as follows. I want to force line breaks when user presses enter and not the paragraphs. I\'m trying following, but not working. I\'m using TinyMCE ve
in tinyMCE 5 I needed to add 1 extra parameter
tinymce.init({ ... valid_elements: 'br', force_br_newlines : true, force_p_newlines : false, forced_root_block : '' });
Simply add forced_root_block : false
forced_root_block : false
Or if you want a wrapper: forced_root_block : 'div',
forced_root_block : 'div'
Works like a charm!