views:

43

answers:

1

Hello!

CKEditor does this whenever I add a heading tag:

<h2>
    Mai 2010</h2>

How can I remove the new line and spaces after the h2 starting tag, please?

+2  A: 

This is the default CKEDITOR behavior for a lot of tag. To avoid it, open the ckeditor.js file and search for this: n.setRules('title',{indent:false,breakAfterOpen:false}); and add this rule: n.setRules('h2',{indent:false,breakAfterOpen:false}); You can add this rule for each tag you want

Thank you! Is there a way to do this from the PHP config `side` rather than editing the CORE files?
Francisc