I have the CK editor set to be disabled by default. When I create or edit a node using only the plain-text window, without ever enabling the CKeditor, it still rewrites my HTML when I save the node.

So, if I enter the following HTML:

<ul>
     <li>Bullet point #1</li>
     <li>Bullet point #2</li>
     <li>Bullet point #3</li>
</ul>

...it changes it to this:

<p><ul><br />     <li>Bullet point #1</li><br />     <li>Bullet point #2</li><br />     <li>Bullet point #3</li><br /></ul><br /></p>

In addition to running it all together, it also wraps it in <p> tags and replaces line breaks with <br /> tags

I am using an input format without the line-break converter, and I don't have any security filters enabled.

The fact that the editor insists on rewriting my HTML is already maddening, but I could work around it if disabling the editor would convince it to leave the HTML alone.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mkesicki’s picture

Category: bug » support
Status: Active » Fixed

If you wish that CKEditor leaves your code in textarea untouched please exclude selected textarea(s) in CKEditor profile configuration in field "Fields to exclude/include" in "Visibility settings" tab.
If this doesn't help you or will have more questions please reopen this ticket.

dczepierga’s picture

Status: Fixed » Closed (works as designed)