Closed (works as designed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
7.x-1.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 May 2013 at 07:26 UTC
Updated:
23 Dec 2020 at 13:56 UTC
Jump to comment: Most recent
Comments
Comment #1
steven_kropp commentedSame problem here... I toggle source code, wrap my lists with
Also I'm using "Full HTML" text format with the Limit allowed HTML tags un-checked.
I've always been able to do this before—now suddenly I cannot.
Comment #2
pyxio commentedYes. weird thing is it removes the classes but keeps the div. so
<div class="foo"> becomes simply <div>. I have searched high and low through config settings to find the culprit. nothing works. much to my chagrin i have to change editors because the classes it is wiping out are important for me.Comment #3
steven_kropp commentedI found a work around here http://drupal.org/node/1980428 if you still wanted to use CKeditor.
Comment #4
pyxio commentedThanks Steven!
Comment #5
Andrei.Sapeshko commentedHere is another possible solution.
http://drupal.org/node/2000712
Comment #6
pyxio commentedstill not working 100%. it is improved by disabling advanced content filter. however, it still strips out classes. these are heavily used in bootstrap themes.
Comment #7
prabhatjn commentedThis helped me:
CKEDitor removes class names, even with the exception in config
Comment #8
sony.sanjay commentedHi,
If the problem started happening when you updated CKEditor library to 4.1 then in the below suggestion will help you.
Please go to the CKEditor and please go to "Advanced options" section of CKEditor profile add this:
config.allowedContent = true;
Thanks
Sanjay
Comment #9
wotney commentedThanks Sanjay, #8 did the trick for me
Comment #10
vokielUsing
config.allowedContent = true;allows all. Basically it disables ACF (Advanced Content Filter) at all, which is not desired and safe.Better set the
config.allowedContent, see more at https://ckeditor.com/docs/ckeditor4/latest/guide/dev_advanced_content_filter.html.