views:

510

answers:

2

If I load up a set of paragraphs then the editor replaces my <p> with <p>&#x9;

It means

<p>paragraph 1</p>
<p>paragraph 2</p>
<p>paragraph 3</p>

ends up like

<p>
   paragraph 1</p>
<p>
   paragraph 2</p>
<p>
   paragraph 3</p>

Has anyone come across this and know how to fix? It seems to be an issue but no response on their forum

UPDATE: credit to @paolo and it's clearer once you find the right documentation.

I edited the source of the htmlwriter plugin what @paolo gave, documentation explains more.

The other thing of note was running the CKPackager (cmd: ckpackager.exe ckeditor.pack). Checking out the ckeditor.js and ckeditor_basic.js before running command as these are the two files outputted.

A: 

I believe there's a setting to format the code, or auto-indent or something along those lines. It was intended to make the source code more readable. It's effectiveness is open to opinion I guess.

Pickle
+2  A: 

I solved the problem by adding this instruction in the file ckeditor.js: n.setRules('p',{indent:false,breakAfterOpen:false});

Paolo
Thank you so much for this. It's been one of those things about the CKEditor that has annoyed me so much and I never knew how to change it. I have no clue who would want a newline and indent inside a p tag :)
Gazillion