Issue #2823πŸ’¬ AnsweredOpened June 11, 2020by Sameedkhan250 reactions

I have used this method to load fonts , working fine in chrome but showing original fonts list in safari

Quick answerby artf

check if your Safari is not showing cached contents and load the font correctly, we already discussed the same thing here https://github.com/artf/grapesjs/issues/2716

Read full answer below ↓

Question

editor.on('load', function () { styleManager = editor.StyleManager; fontProperty = styleManager.getProperty('Typography', 'font-family'); var list = []; fontProperty.set('list', list); list = [ fontProperty.addOption({value: "'Oswald', sans-serif", name: 'Oswald'}), fontProperty.addOption({value: "Helvetica Neue,Helvetica,Arial,sans-serif", name: 'Helvetica'}), fontProperty.addOption({value: "sans-serif", name: 'sans-serif'}), fontProperty.addOption({value: "Times New Roman", name: 'Times New Roman'}), fontProperty.addOption({value: "Arial Black", name: 'Arial Black'}), fontProperty.addOption...

Answers (1)

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

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.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.