Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
All formatting on nodes is fine until I open them to edit them. For some odd reason CKEditor clumps all the words together and creates a HUGE wall of text. All the paragraphs and line breaks are gone.
This happens when using FF 3.6 and the latest version of Chrome on Win7.
I've got the Jan 13th version of CKEditor.
Here's a link to my site where it happens: http://heyitsalex.com/javascript-101
That node right there has a ton of paragraphs in it, but when I click "Edit", all the paragraphs are gone.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1.PNG | 37.11 KB | Rodney Strong |
#2 | 2.PNG | 36.33 KB | Rodney Strong |
Comments
Comment #1
dczepierga CreditAttribution: dczepierga commentedWhich input format do u use? Do u modify it after install?
Could u also write which security filters u have checked in profile settings of CKEditor (for input format that u use)?
Greetings
Comment #2
Rodney Strong CreditAttribution: Rodney Strong commentedAccording to screenshot 1.png, I use "filtered HTML", which is what it defaults to.
I did not modify anything after this fresh install.
The security filters for the "Full" profile that are checked are:
Convert URLs into links
Convert line breaks into HTML (i.e.
and
)
Screenshot 2.png shows the security filters for the "Full" profile in CKEditor.
For the "Advanced" profile, only this one is checked:
Limit allowed HTML tags
The "Full" profile is enabled for Admins
The "Advanced" profile is enabled for anonymous users.
Thanks for the help
Comment #3
dczepierga CreditAttribution: dczepierga commentedCould u try to disable filter "Convert line breaks into HTML" and then try to edit node. If it doesn't help try to disable all security filters and check node edit again.
Probably one of Drupal filters remove to much tags...
Which version of Drupal do u use??
Comment #4
Rodney Strong CreditAttribution: Rodney Strong commentedHmm this is weird.. Maybe you can make sense out of this.
I disabled all the security links for both profiles (Full and Advanced) and tried editing the node. Didn't work.
I then checked the radio button from "Always run security filters for CKEditor" to "Run security filters only when CKEditor is set to start automatically.", then cleared the cache, then tried editing the node, and it worked...
I then went back and re-enabled "Convert URLs into links" and "Convert line breaks into HTML (i.e.
and
)", cleared the cache, then tried editing the node, and it worked...
I never re-enabled the "Limit allowed HTML tags" filter on the "Advanced" profile though, but still this is odd to me.
Thanks for having me go through this exercise. Can you pinpoint what was causing the issue though?
Thanks also for solving this!
Comment #5
kbrinnerI am having the same problem - all paragraph and header tags are stripped from the node content when I click the Edit tab for a saved node. Strangely, unordered list tags were not stripped out, but whatever. I tried what Rodney suggested above:
I noticed after I did this my CKEditor expanded horizontally to fill the screen (which it wasn't doing before), but unfortunately tags were still being stripped when I clicked Edit. I went back to the Advanced and Full profiles to enable Convert URLs into links and Convert line breaks into HTML, and then tried Editing the node. Tags are no longer being stripped out. Happy to help with testing if you need more information on this bug.
BTW, I'm running Drupal 7.0, CKEeditor 7.x-1.1, no other modules installed.
Comment #6
dczepierga CreditAttribution: dczepierga commented@kristin.brinner, Do u try to change input format from Filtered HTML to Full HTML?
Greetings
Comment #7
kbrinnerIt's now working so I don't know if the full vs filtered HTML trick would have worked - I'm pretty sure I tried changing the input format before I went through Rodney's fix, but I'm not positive.
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedI followed similar steps as outlined above and it seemed to fix the problem
thanks...
Comment #9
wipeout_dude CreditAttribution: wipeout_dude commentedI have 7.x-1.2 installed on a fresh 7.2 install and the only way I can get it to work is by disabling "Limit allowed HTML tags" under the security section.. If this is enabled it bins the P tags when reading the content in to edit..
Comment #10
astra CreditAttribution: astra commentedI got the same problem if enabling "Limit allowed HTML tags" under the security section.
Comment #11
dczepierga CreditAttribution: dczepierga commentedThis issue is related with this: #1188054: [D7] Limit seurity filters on each profile
Now we have only security filters on the list, all other filters should be selected in input format.
After update pls save again your profile configuration.
Pls report here does it work or not.
Greetings
Comment #12
adshill CreditAttribution: adshill commentedI downloaded the dev version and tried it - still loses all formatting.
Comment #13
adshill CreditAttribution: adshill commentedLooks to me like its because of the "Limit allowed HTML tags" in advanced settings. Disable this everything works, enable it breaks.
[EDIT] Now its putting line breaks in the output instead of paragraph tags. Its a mess! Full HTML works, filtered HTML (with default install) doesn't.
Thanks,
Adam
Comment #14
escherian CreditAttribution: escherian commented#13 worked for me
Comment #15
Jukebox CreditAttribution: Jukebox commented#13 worked for me as well.
Comment #16
dczepierga CreditAttribution: dczepierga commentedHi,
I make some changes and commit them to GIT.
Now when u editing a node in the first run text in the textarea is processed by drupal with selected text format - so it's execute all filters defined in text format.
Security filters which u can choose in the CKEditor profile now are only additional filters which are executed only if choosen text format on start don't have this filter enabled.
If u can pls test last DEV and report that it works for u or not.
Greetings
Comment #17
gmopinillosv CreditAttribution: gmopinillosv commentedHello there
I discovered that you also must to enable Bandwidht Optimization on : configuration/performance (both options)
I hope this help somebody.
Thanks
Comment #18
dan_no_yes CreditAttribution: dan_no_yes commentedI noticed that <p> wasn't in the default list of allowed tags set by the filter module. Adding it solved this issue for me.
Using: Drupal 7.4, CKEditor 7.x-1.2
Comment #19
dczepierga CreditAttribution: dczepierga commentedNo one report any bug to last patch so i mark it as fixed.
Greetings
Comment #20
Scatterspell CreditAttribution: Scatterspell commentedI can confirm that is is from not adding the paragraph tag to your list of allowed html tags for Filtered HTML.
Comment #22
mkesicki CreditAttribution: mkesicki commentedComment #23
loparr CreditAttribution: loparr commentedExactly same happening here - saved node contains paragraphs but when editing it in Ckeditor, all p tags are gone. One site uses ckeditor 7.x-1.12 and it works OK. Another uses 7.x-1.16 and it is not working from time to time. Really weird issue.
Comment #24
Tran CreditAttribution: Tran commentedStill broken for me.
I've tried fixes listed here and elsewhere.