开发者

difference between ckeditor entermode div and entermode p

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?


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 />.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜