Having trouble getting help?
Contact Support
Contact Support
How to customize the font family drop down in React Document Editor component
5 Apr 20221 minute to read
Document editor provides options to customize the font family drop down list values using fontfamilies
in Document editor settings. Fonts which are added in fontFamilies
of documentEditorSettings
will be displayed on font drop down list of text properties pane and font dialog.
Similarly, you can use documentEditorSettings
property for DocumentEditor also.
<ejs-documenteditorcontainer id="container" documentEditorSettings="settings" enableToolbar=true height="590px"></ejs-documenteditorcontainer>
<script>
var settings = { fontFamilies: ['Algerian', 'Arial', 'Calibri', 'Cambria'] };
</script>