When I click the 'Save' button for a node, the code in the CPN field (for CSS, in this case) is filtered: wrapping <p></p> tags are inserted, and newlines are converted to <br />.

This happens before the page is submitted. I can watch it happen, before the page is submitted: It happens right in front of my eyes.

I have CKEditor installed, but it's explicitly excluded for those fields. (In any case, that shouldn't have the effect of filtering the content before it's submitted.)

I do not have CodeMirror installed (it's incompatible with CKEditor).

Any suggestions on what could be causing this or how to prevent it?

Comments

joelstein’s picture

Status: Active » Closed (cannot reproduce)

Only Javascript could transform the contents of a field before it's submitted. Code per Node isn't doing it, that's for sure. Especially if you don't have CodeMirror installed. Or it might be a browser plugin...?

My guess is that it is in fact CKEditor or some other Javascript library. To completely be sure that it's not Code per Node, setup a vanilla Drupal + Code per Node install. If you still find this bug, open this ticket back up.

escoles’s picture

Project: Code per Node » CKEditor 4 - WYSIWYG HTML editor
Version: 6.x-1.1 » 6.x-1.3
Status: Closed (cannot reproduce) » Active

Further testing:

1 - same phenomenon happens with other textarea fields (e.g. the Page Specific Display settings on a block edit page)

2 - ceases to happen as soon as CKEditor is disabled.

CKEditor is NOT enabled for those fields.

dczepierga’s picture

@escoles, could u try to do this with last DEV version of CKEditor module?

Greetings

dczepierga’s picture

Status: Active » Closed (cannot reproduce)

Issue is not active over 1 month, i don't get any additional information so I closed it.

Greetings

escoles’s picture

FYI, preliminary evidence suggested this is a result of conflict between global and profile inclusion settings in CKEditor module, but I haven't had time to test fully. Will re-open when I have that. Right now, I use the CKEditor module on about 10 sites, only one of those has inclusion on global and exclusion on profiles, and that's the one with the problem. It's a site that only I ever edit content on, so the more expedient course was to just disable CKEditor on that site until I have time to fix the issue.