TinyMce: 插入 hyperlink 并继续写入 extends link

TinyMce: Insert hyperlink and continue writing extends link

我有一个配置了以下设置的 TinyMce(版本 4):

forced_root_block: false
force_br_newlines: true

如果用户添加一个 hyperlink(通过 link 对话框)并继续写入,以下文本扩展 link:它呈现为 link 并且可点击,定位到之前添加的 link.

的 url

我认为理想的行为是在插入 link 后写入 "normal" 文本。我可以通过使用例如解决这个问题<p> 作为 forced_root_block 但这不是我想要的。还有其他方法可以解决这个问题吗?

我最终使用 <p> 作为 forced_root_block 因为我找不到另一个合适的解决方案来解决这个问题。

我还想在这里引用 documentation 的这条警告:

Note that not using P elements as root block can severly cripple the functionality of the editor.