-
Notifications
You must be signed in to change notification settings - Fork 324
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
Font Awesome 5 Needs 'far' or 'fas' classes, not 'fa' #29
Comments
I'm not sure what is accidentally going right in your tests, but the fa prefix is clearly deprecated in FA5, as per the official FontAwesome site. Have you tried using their FontAwesome 5 can instead of the v4.7.1 bootstrap one you are currently using? Personally, I use the official font awesome sass gem to build font-awesome from scratch within a Rails deployment. I was hoping the official docs would be enough for you to fix this, but if not, I guess I could throw together a mini rails app you can setup and run if need be. |
Ok, I put together a local rails project and installed FontAwesome-sass. EasyMDE did not properly detect it, and instead loaded the bootstrapcdn's 4.7 version. The icons did work however, leading me to discover that the problem I was seeing above stems from a security header blocking So this issue can be closed, but it opens two new questions...
|
But to possibly solve your FA4 issue: you can prevent the editor from downloading FA4 by setting the |
Should the README be updated so that the SimpleMDE fork section says "FontAwesome 4 compatibility" rather than "FontAwesome 5 compatibility"? Until I found this issue I was confused as to why FontAwesome 5 styles didn't work, and then why v4.7 was being downloaded, when the README says EasyMDE uses v5. |
The README is correct, the editor has compatibility with FontAwesome 5 (Five), that was the initial reason for the fork. However the default is still FontAwesome 4. Look at https://easy-markdown-editor.tk/ for an example of the editor running using FontAwesome 5. |
Thank you for the clarification. |
I'm submitting a...
Reproduction steps
Version information
Browser type and version:
EasyMDE version: 2.4.1
Font Awesome 5 has changed the way they do their classing from Font Awesome 4. No longer can you simply use
fa
, rather you need to usefas
,far
, etc... It appears that your autoloaded version actually uses FA 4.7.0, does not behave this way, so when using EasyMDE on a site that already uses FontAwesome 5, the icons do not show.It seems to me that the solution is to simply add
far
orfas
to the corresponding icon classes, as it won't affect people who still use FA4, and the extrafa
won't affect people using FA5.The text was updated successfully, but these errors were encountered: