Using Drupal 7.21 with ckeditor wrapper 1.12 and ckeditor 4.1 from their website. When I paste or type in code such as v-aligns for tables or inline styles and save things are fine, but as soon as I edit a page all this is stripped out.
If I got to Configuration -> ckeditor -> edit global - everything is default
If I go to Full / Full HTML -> edit or Advanced / Filtered HTML -> edit everything is on default as well. I see no security options I could select other than disabling "Always run security filters for CKEditor." which doesn't seem to make any difference.
If I go to Configuration -> Text Inputs -> and edit any of the ones I've created "Limit allowed HTML tags" is not selected on any of the options.
Also the toolbar occasionally doesn't show up at all.
Comments
Same here
Noticed this after updating CK Editor.
Confirmed
As soon as I updated to the newest full CKEditor library (4.1), all my classes, inline styles, etc. are getting stripped, even with the Full HTML text format.
Correction: it's not taking classes and styles off of everything oddly enough, my div elements keep their classes and styles.
Related report?
There may be a related issue posted here: #1906400: Colors, styles, size and not saved when editing text in any node.
CKEditor 4.1 introduced ACF
If the problem started happening when you updated CKEditor library to 4.1 then in the "Advanced options" section of CKEditor profile add this:
config.allowedContent = true;Read Upgrading to CKEditor 4.1 for more details.
We'll deal with this in CKEditor module somehow as well- see #1950498: JavaScript and other tags are being removed after updating to CKEditor 4.1.
Wiktor Walc
http://ckeditor.com
"Support Open Source Software"
Thanks Wiktor
That sorted it for me
THANK YOU! This fixed my
THANK YOU! This fixed my issue!
Thanks
That fixed for me! Thanks
Thank you. This improved the
Thank you. This improved the outcome of my ckeditor but didn't fix it 100%.
At the moment, when I paste the following:
It strips it into the following:
How do I make it NOT strip out the a tags?
Check this comment:
Check this comment: http://dev.ckeditor.com/ticket/10325#comment:2
In general you should separate "real" content (blog posts, articles) and HTML templates to avoid this kind of issues.
Wiktor Walc
http://ckeditor.com
"Support Open Source Software"
Thank you!!!
Thank you!!!
That fix did not work with Tables Filter
Hi;
the *advanced options* fix does not stop CKEditor 4.1.1 from messing up with Tables filter.
If I paste and save the
[table=tables-entry-list ! n............
........ | ............ | ................| .......... ]
pre-formatted text it works fine. But if I go back to edit, it comes up wrapped in
<p></p>and all in one line.Any idea?
Thanks
meno1max
Thanks
wwalc, thank you very much. Works perfectly for Drupal 6 as well.
This worked for me.
This worked for me.
Crossposting my solution to
Crossposting my solution to this: https://drupal.org/node/1950498#comment-7706699
http://bonify.io
Check CKEditor Configuration
This fixed the unwanted stripping out of HTML:
Go to /admin/config/content/ckeditor/edit/Full
Click the Advanced content filter link, which makes a form drop down.
Set Advanced content filter: Disabled