Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top