grapesjs
grapesjs copied to clipboard
Include all the google fonts?
@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.
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.