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
Comment #1
joelstein CreditAttribution: joelstein commentedOnly 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.
Comment #2
escoles CreditAttribution: escoles commentedFurther 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.
Comment #3
dczepierga CreditAttribution: dczepierga commented@escoles, could u try to do this with last DEV version of CKEditor module?
Greetings
Comment #4
dczepierga CreditAttribution: dczepierga commentedIssue is not active over 1 month, i don't get any additional information so I closed it.
Greetings
Comment #5
escoles CreditAttribution: escoles commentedFYI, 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.