grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

Include all the google fonts?

Open yashvirsoftobiz opened this issue 8 years ago • 2 comments

@artf I want to include all the google fonts in font family.

fw How can we include/import all the font family, Any help would be appreciated.

yashvirsoftobiz avatar Aug 27 '18 10:08 yashvirsoftobiz

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);

artf avatar Sep 02 '18 17:09 artf

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.

lock[bot] avatar Sep 17 '19 07:09 lock[bot]