First off, I have read the documentation, but nothing there seems to help. I am using CKEditor with Drupal 7 via the http://drupal.org/project/ckeditor module.
I try to add the following to a document :
<i class="icon-envelope-alt icon-2x pull-left icon-border"></i><p style="line-height: 42px;">Or click <a class="btn btn-primary btn-small" role="button" href="contact-us" style="margin: 0 10px 0 10px;">Contact</a> to send us an email.</p>
and the <i> tag and the class that goes with it get stripped.
I have tried all of the following:
config.allowedContent = true;
config.allowedContent = 'true';
CKEDITOR.config.allowedContent = true;
CKEDITOR.config.allowedContent = 'true';
Each of the above in ckeditor/config.js and in the ckeditor.config.js supplied by the Drupal module. Both browser cache and Drupal cache have been flushed multiple times to no avail. I'm getting desperate now hence my post here as well as the Drupal module's issue queue as I'm getting no response from there.
What simple thing is it that I'm missing? Ideally I want to use config.extraAllowedContent to only let certain tags through.
Thanks
PS. If I simply save the document without switching from source mode to design mode, the tags are left alone, but this is not ideal behaviour.

Have you modified Drupal's
Have you modified Drupal's filters too? In Drupal 7 there's no automatic synchronization between filter. It will be added in Drupal 8.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Hi and thanks for responding.
Hi and thanks for responding. Yes I have disabled all of Drupal's own content filtering.
Oups, sorry. I haven't
Oups, sorry. I haven't noticed that you meant that CKEditor removes empty inline elements. This is completely unrelated to ACF or Drupal's filter.
Anyway, there are at least 3 options how you can solve this problem. You can find short descriptions here: http://stackoverflow.com/questions/18250404/ckeditor-strips-i-tag
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Excellent, this did the trick
Excellent, this did the trick:
Thank you for the quick responses, I can see this information being useful in the future also.
Not sure what happened there,
Not sure what happened there, pasting the code didn't appear to work the first few times, so sorry about the multiple copies.
Solution works, but not completely.
Hi, I was able to add the lines above to get i tags to work. I can also get aside tags to work this way. However, there are two problems:
<p><aside></p>
<p>content</p>
<p></aside></p>
<!--{cke_protected}%3Caside%20class%3D%22alignleft%22%3E-->
So users can't really preview how it should look.
Could someone help me resolve these issues? I am using Drupal and putting these lines in /sites/all/modules/ckeditor/ckeditor.config.js. Like the OP, putting any variation of config.allowedContent in this file changed nothing.
1) is solved
I have this in my config file:
config.autoParagraph = false;
I don't know if this did it specifically, but I have noticed that my aside tags aren't getting wrapped anymore. Hopefully this will work for others.