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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

polmaresma’s picture

Here you can see my actual configuration.
Thank's

Zach Harkey’s picture

Try 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;

steven_kropp’s picture

I 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??

Zach Harkey’s picture

I think it's only a proper option in 7.x.-1.x-dev at the moment.

mrieser’s picture

ckditor 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!

Andrei.Sapeshko’s picture

Here is another possible solution.
http://drupal.org/node/2000712

jcisio’s picture

Status: Active » Closed (works as designed)
Issue tags: +ACF
craigtockman’s picture

#5 Thanks dude. This was the only solution that worked for me. Saved me from having 100's of pages destroyed.