I'm trying this out on a drupal site that has ckeditor installed. I also tried the following html code on the demo site with same results. When I paste the following code in source and then switch back to non-source and then back to source my code disappears.
<div id="social-widget-header" class="text-center-responsive"> <a href="http://www.facebook.com"><i class="icon-facebook"></i></a> <a href="http://www.twitter.com"><i class="icon-twitter"></i></a> <a href="http://www.linkedin.com"><i class="icon-linkedin"></i></a> <a href="http://www.pinterest.com"><i class="icon-pinterest"></i></a> <a href="http://plus.google.com"><i class="icon-google-plus"></i></a> <a href="http://www.github.com"><i class="icon-github"></i></a> </div>
Here are my steps:
1. Select source from ckeditor panel
2. Paste code
3. Click on source on ckeditor panel (code disappears)
4. Click on source again to bring the html code into view, no code, all gone!
Please advise.
When I enter the code in my
When I enter the code in my drupal block and then save the block. Everything works fine. The code gets parsed and everything shows up find. However if I choose to go back and edit the block and open it, everything is blank. I can click on source and everything remains blank. So I save the code and can't ever edit it again because it disappears.
CKEditor removes empty tags.
CKEditor removes empty tags. Here's more about it... Your entire "social header" should be a widget.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!