Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fontawesome not working #309

Open
ghost opened this issue Feb 24, 2016 · 2 comments
Open

Fontawesome not working #309

ghost opened this issue Feb 24, 2016 · 2 comments
Assignees

Comments

@ghost
Copy link

ghost commented Feb 24, 2016

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.

@hyperboy hyperboy self-assigned this Feb 29, 2016
@hyperboy
Copy link
Collaborator

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;

@ghost
Copy link
Author

ghost commented Feb 29, 2016

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
#309 (comment)
.

Best,

Joshua Hunt
District Webmaster
Orange County Schools
200 E. King Street
Hillsborough, NC 27278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant