-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Upgrade to Fontawesome 5 #644
Comments
Hi Matt, we're already planning to remove Fontawesome from the core and use instead SVGs for icons :) |
Great!! |
PS, FA5 uses SVGs ;) |
Can this be re-opened since FA5 uses svgs? Really need this |
Just a note that the newsletter plugin will need upgrading too to fa5 |
Still very important, any update? |
Sorry Matt, busy period :/ |
I came to ask the same thing. I'm using the raw fontawesome SVG. https://github.com/FortAwesome/Font-Awesome/tree/master/advanced-options/raw-svg
|
Just wanted to check in to see if there's a timeline on this? Working on a site that has FA5, but it causes conflicts while trying to integrate GJS. |
I can understand the delay - switching to FA5 is not an insta decision as FA5 separates icons out and requires checking and maybe updating class |
In favor of the roadmap (#74) to |
@artf Any news Font Awesome 5? |
@chiqui3d nope. |
Ok I'll try to create a PR, thanks for everything. |
I am facing the same issue - after reading severeal issues I am still not sure if there is a possibility to use GrapesJS with Fontawesome 4 (which it requires) by delivering Fontawesome 4 from the own website AND use Fontawesome 5 on the same page for other stuff. Did anyone manage to get the GrapesJS editor working on a website that uses Fontawesome 5? |
Hi guys, I'd like to propose a temporary and quick solution to the problem of having FA in the core. grapesjs.init({
// ...
// This will be the default to avoid breaking current layout
cssIcons: 'https://cdn..../font-awesome/4.7.0/css/font-awesome.min.css',
// cssIcons: null, // this will avoid loading css icons
}) |
Hello @artf , I didn't even remember this, after a year I have tried again to use the editor, in my spare time I try to get a project where the editor appears, but I never get it out, well in short I haven't had time to do the PR that's reason I contributed a little in opencollective. Well although it is not the best option that you propose, it is an option that could work temporarily. But the ideal is that grapesjs has its own icons made with IconMoon. But yes, the temporary solution is appreciated. Thanks |
Removed FA from dependecies https://github.com/artf/grapesjs/releases/tag/v0.15.9 |
I am using grapesjs v0.15.10 and still getting a conflict between the version used |
Hello, (I'm really impressed with GrapesJs especially with how extendable it is 👍👌) I'm just leaving this as a note as it might help someone else 😊 I found a few issues that are easily fixed by adding an style tag before the editor (I'm lazy, and frontend isn't really my thing 😉). First, I added .gjs-editor-cont .fa {
font-weight: 400;
}
.fa-square-o:before {
content: "\f0c8";
}
.fa-trash-o:before {
content: "\f1f8";
}
.fa-map-o:before {
content: "\f279";
}
.fa-youtube-play:before {
content: "\f04b";
}
/* Fix: open close chevrons: FA5 has the tags in different order ?!!? */
.fa-chevron-right:before {
content: "\f054";
}
.fa-chevron-down:before {
content: "\f078";
} |
Anyone looking at this still? I still get issues running on a project with fontawesome 5, some icons are missing. |
@Ericky14 => Fix temp for fontawesome 5,
|
@antman3351, @osteamhcm, or @artf I am trying to integrate GrapesJS into an existing application that uses FA5 and noticed none of the click events work. I tried the solutions above by setting |
@antman3351, @osteamhcm, or @artf a few more details. Really the click events that do not seem to work are for the style manager, settings, layer manager and blocks (three items above the right panel). The style manager is defaulted as the selected panel, but I cannot click the any of the other buttons in the top panel bar (gjs-pn-buttons). I included a screenshot of how the DOM is being updated by FA5 to convert the spans to svgs. |
@antman3351, first off thank you for the quick reply. Second (major facepalm moment), using the fontawesome JS for converting to SVGs breaks GrapesJS. I switched my build to using the CSS and webfonts instead of the JS and everything appears to be working properly now. |
@bmcorum Hello, how did you switch your build to use CSS and webfonts instead of the JS ? I have try many things but fontawesome-i2svg is always call. |
From fontawesome 4. Would be a good opportunity to make fa5 a peer-dependency this time as well, so people aren't including it twice
Some icons need to be replaced is the only migration
The text was updated successfully, but these errors were encountered: