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.
Hi, I need to put some styles inside the Full HTML text format.
I'd removed HTML correct plugins but ckeditor stills remoes al inline styles. For example:
<div style="border: 1px solid red;">test</div>
becomes this after saved.
<div style="">test</div>
Any idea of how to avoid it?
Thank's
Comment | File | Size | Author |
---|---|---|---|
#1 | Captura de pantalla 2013-04-26 a les 14.16.39.png | 28.93 KB | polmaresma |
#1 | Captura de pantalla 2013-04-26 a les 14.17.46.png | 55.1 KB | polmaresma |
Comments
Comment #1
polmaresma CreditAttribution: polmaresma commentedHere you can see my actual configuration.
Thank's
Comment #2
Zach Harkey CreditAttribution: Zach Harkey commentedTry disabling the "Advanced Content Filter" (aka ACF).
It's one of the collapsed fieldsets on the profile edit page. Set it to disabled.
If that doesn't work, try manually adding this line in Advanced Options > Custom Javascript configuration field:
config.allowedContent = true;
Comment #3
steven_kropp CreditAttribution: steven_kropp commentedI couldn't find where to disable the ACF was... but I did add "config.allowedContent = true;" in the custom JS field and that seemed to work.
I am still curious where I could find the "Disable the Advanced Content Filter" within the CMS??
Comment #4
Zach Harkey CreditAttribution: Zach Harkey commentedI think it's only a proper option in 7.x.-1.x-dev at the moment.
Comment #5
mrieser CreditAttribution: mrieser commentedckditor was stripping out all of the embedded videos each time I edited a page.
Manually adding: config.allowedContent = true;
to: Home » Administration » Configuration » Content authoring
Profile (Advanced and Full)
Advanced Options
Custom JavaScript configuration
Worked like a charm!
Thank You Zach!
Comment #6
Andrei.Sapeshko CreditAttribution: Andrei.Sapeshko commentedHere is another possible solution.
http://drupal.org/node/2000712
Comment #7
jcisio CreditAttribution: jcisio commentedComment #8
craigtockman CreditAttribution: craigtockman commented#5 Thanks dude. This was the only solution that worked for me. Saved me from having 100's of pages destroyed.