How to prevent stripping of i tags from ckeditor?

When we edit the i tags that we already used inside ckeditor will strips out. This will continue every time when we open the ckeditor. Here is the solution for this problem.


Goto administration->configuration->content authoring->ck editor



Then goto profiles->full html-> edit


There click on the advanced options.


On the text box 'Custom JavaScript configuration'


Paste the code below


config.allowedContent = true;

config.extraAllowedContent = 'p(*)[*]{*};div(*)[*]{*};li(*)[*]{*};ul(*)[*]{*}';

CKEDITOR.dtd.$removeEmpty.i = 0;


Save this and goto ckeditor and we can find that the i tag is not stripping out now.