Closed dakom closed 5 years ago
@dakom : is not possible to know what all fonts has been loaded on the page, is it possible that you pass this list to the editor component ?
Yes - that's the intent of this issue, to allow the containing app/component to manually supply the list.
It is up to the containing app/component to preload them before starting the editor :)
I have already added Hebrew fonts: https://github.com/jewish-interactive/ji-wysiwyg-editor/issues/6. I will make this change also 👍.
Font family prop has now been added to the editor and fonts are required to be passed.
<JiEditor
defaultValue={"<p>testing</p>"}
onChange={this.updateEditorContent}
fontFamily={[
"Assistant",
"Varela Round",
"David Libre",
"Frank Ruhl Libre"
]}
/>
Released ji-wysiwyg-editor@0.1.9
e.g. to start from scratch so that we can supply only the fonts we have pre-loaded as web fonts