views:

34

answers:

1

Hi,

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 introcudes 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 ?

Thanks,

Kenny

+1  A: 

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

Anpher
Thanks , that works inside the editor.However , it doesn't work outside the editor : it means i have to change the style of p everywhere i want to show the content created by the editor.
Kenny
The problem is that this content may be used inside emails , and the recipients won't have this style set , so they will receive it with margins.
Kenny
@Kenny you can send inline css in email :)
Anpher
Thanks, i'll look into this solution.
Kenny