ckeditor Entermode div 和 EnterMode p 之间的区别
我注意到 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
设置
CKEDITOR.config.contentsCss
选项以避免意外的边距、填充和其他浏览器默认 css 规则。现在您可以使看起来像
。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 />
.