Default selected font issue for custom font in the Typography.
I ended up using something like the following to have Lato as a custom font and set it as my default font: this way Lato is checked by default. And of course have the body CSS declare it as your default font as well.
Read full answer below âQuestion
There is one font issue when i click on any element it not show the current font of the element, i added custom code for add my custom fonts. code work perfectly but it not show the selected font by default when i select an paragraph or any text.
Answers (3)
I ended up using something like the following to have Lato as a custom font and set it as my default font: this way Lato is checked by default. And of course have the body CSS declare it as your default font as well.
The problem here is the computed font of the selected component. You need to have that computed font inside your list otherwise you won't see it. As already suggested by @jrking4 you can set your default font-family to the body
i found the answer : you have to add your font in single or double quotes otherwise it wont detect the font like this because we write font in our css like : font-family: 'Oswald' html in browse auto convert single quotes to double quotes, when the font match with html and included font in JS it wi...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2715
I have added the custom font using the method below but that font is only working in few cases
There is one font issue when i click on any element it not show the current font of the element, i added custom code for add my custom font...
Issue #857
[Question]: How do I add a custom font in the Typography | Font dropdown?
Hi, First off, this is what I've been looking for for a long time so thanks for your efforts. Next, I'd like to add a font in the Typograph...
Issue #371
Enable the default RTE with a custom function
Do my API call correctly, want to add a RTE with custom function to add a link/open new windows/open modal: Command work for fontSize but t...
Issue #492
Insert Text at cursor position inside text
Hi, We are evaluating GrapesJS for one of requirement. As part of the evaluation i am creating custom command 'insert placeholder', what it...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins âPremium plugins ship with support, regular updates, and production-ready features â save days of integration work.
Browse premium plugins âRelated tutorials
In-depth guides on the same topic.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.