Include all the google fonts?
Question
@artf I want to include all the google fonts in font family.
How can we include/import all the font family, Any help would be appreciated.
Answers (2)
You can init the editor with custom style/scripts if you need
var editor = grapesjs.init({
canvas: {
styles: [
'https://fonts.googleapis.com/css...',
// ...
],
scripts: [
'https://...some-script.js',
// ...
],
},
});
or you can add them dynamicly like this
editor.Canvas.getDocument().head.appendChild(someEl);
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1294
How to add category for default block manager?
@artf I want put all default blocks to category named "Basic". But I can't find any documents about it. I use editor.BlockManager.getAll()....
Issue #1434
Toolbar Hide text element
@artf Please check you demo page text is hiding under the toolbar. how can we update the toolbar position?
Issue #1398
GrapesJS translate
Hello @artf , Do I want to translate all functions into Hungarian, so that I can do it? Please give me examples of how to modify these text...
Issue #1490
How to send value from the layout section
@artf I need your help to solve my issue with grapesjs i have this code in the template: I want to pass that value in this way but when I e...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.