ckeditor Entermode div 和 EnterMode p 之间的区别

发布于 2024-09-29 02:24:39 字数 313 浏览 11 评论 0原文

我注意到 CkEditor 在使用 Entermode br 时存在问题(主要是长时间输入文本后速度缓慢)。

所以我正在研究其他输入模式(p 和 div)。

我看到 CkEditor 建议使用 Entermode p。

然而,这会在内容下方引入边距,这是不希望的(因为用户不习惯键入段落)。

所以,我正在考虑使用 Entermode div ,在这种情况下似乎更正确。

但是,我想避免使用 Entermode div 引入问题。

Entermode p 和 Entermode div 之间的行为是否存在已知差异?

I noticed that CkEditor has problems with using entermode br (mainly slowness after typing text for a long time).

So I'm looking into the other entermodes (p and div).

I see that entermode p is adviced by CkEditor.

However, this introduces margins below the content, which is not desired (as the users are not used to typing paragraphs).

So, I was thinking of using entermode div , which seems more correct in this case.

However, I want to avoid introducing problems by using entermode div.

Are there known differences in behaviour between entermode p and entermode div?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初见终念 2024-10-06 02:24:39

Set the CKEDITOR.config.contentsCss option to avoid unexpected margins, paddings and other browser default css rules. Now you can make <p> to look like <br />.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文