Fontawesome not working
I am using D7 and Fontawesome. The icons show up when I put them in a Full Text page. However, when I go back to edit the page and save, the icons disappear. I can't seem to find a way to fix this issue.
If you are using the CKEditor module, you can add the following string to the ckeditor.config.js in the module directory.
config.protectedSource.push( /<i class\=\"[\s\S]*?\"\>*?<\/i\>/g ); //allows <i class=""></i> tag
Alternatively, you can try the following solution suggested on https://www.drupal.org/node/2385795
Go to /admin/config/content/ckeditor/edit/Full and under the "Advance Options" add the following line under "Custom JavaScript configuration" :
config.allowedContent = true;
config.extraAllowedContent = 'p(*)[*]{*};div(*)[*]{*};li(*)[*]{*};ul(*)[*]{*}';
CKEDITOR.dtd.$removeEmpty.i = 0;
Thank you.
On Mon, Feb 29, 2016 at 1:44 PM, Brian Young [email protected] wrote:
If you are using the CKEditor module, you can add the following string to the ckeditor.config.js in the module directory.
config.protectedSource.push( /<i class="[\s\S]?">?</i>/g ); //allows tag
Alternatively, you can try the following solution suggested on https://www.drupal.org/node/2385795
Go to /admin/config/content/ckeditor/edit/Full and under the "Advance Options" add the following line under "Custom JavaScript configuration" :
config.allowedContent = true; config.extraAllowedContent = 'p()[]{};div()[]{};li()[]{};ul()[]{}'; CKEDITOR.dtd.$removeEmpty.i = 0;
— Reply to this email directly or view it on GitHub https://github.com/SU-SWS/open_framework/issues/309#issuecomment-190326849 .
Best,
Joshua Hunt District Webmaster Orange County Schools 200 E. King Street Hillsborough, NC 27278