Replies: 1 comment 1 reply
-
Hi @dohomi CSS variables like If you need some default global CSS rule in your pages, I'd suggest using the grapesjs.init({
// ...
protectedCss: `
* { box-sizing: border-box; }
body {
margin: 0;
font-family: Comic Sans MS, cursive, sans-serif;
}
`,
}); If you also need to update the style manager property, you can do this: // Update options...
editor.StyleManager.getProperty('typography', 'font-family')?.setOptions([
{ id: 'Inter, sans-serif', label: 'Inter' }
]);
// ...or remove it
editor.StyleManager.removeProperty('typography', 'font-family'); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Guys
I would like to simply change the main font to only one font ( I don't allow changing fonts ). The font should be my system font "Inter"
Even this rule is applied I still see the font-family of 'Times'. What am I missing here?
Additionally I also tried to change the fontProperty:
I found many issues of changing the options of font-family but none of the solutions were helping me out yet.
Beta Was this translation helpful? Give feedback.
All reactions