TinyMCE: Reverse the <p> and <br>

TinyMCE: Reverse the <p> and <br>

本文关键字:gt lt and br TinyMCE Reverse the      更新时间:2023-09-26

当我输入TinyMCE时,shift+enter for <br>并输入<p>是默认设置,但我如何逆转这一点?

我想让enter<br>

shift+enter as <p>

我知道forced_root_block: ''会改变这一点,但我需要<p>元素插入之前,我做任何类型。因此,禁用<p>块不是一个选项。

forced_root_block呢?

如果您将其设置为false"",则BR是默认值,SHIFT+ENTER将生成p。

我在谷歌上搜了两分钟才看到的

您可以使用此选项强制在新行

使用br
tinyMCE.init({
    ...
    force_br_newlines : true
});