2

当用户在使用 TinyMCE 时按 Enter 键时,它不会添加新行,而是添加新段落。我可以更改此行为并强制它仅添加换行符<br />而不是新段落吗?

4

1 回答 1

3

哎呀,答案就在这里https ://www.tinymce.com/docs/configure/content-filtering/#forced_root_block

tinyMCE.init({
    ...
    forced_root_block : 'p'
});
于 2013-01-20T10:45:09.390 回答