Is there a way to set the fonts available for ejs-documenteditorcontainer

I'm attempting to limit the fonts available but cannot find a way to override the defaults presented when using the DocumentEditorContainer.

Any hints?


3 Replies 1 reply marked as answer

KB Kurthis Banu Abdul Majeeth Syncfusion Team November 25, 2021 05:20 AM UTC

Hi Todd Jensen, 
 
Thanks for contacting Syncfusion support.   

You can customize font dropdown based on our requirement and add more fonts in Syncfusion document editor like below code snippet.    

 Code snippet:   

let container: DocumentEditorContainer = new DocumentEditorContainer({ documentEditorSettings: { fontFamilies: ['Algerian', 'Arial', 'Calibri', 'Cambria', 'Windings'] }});    
 
  
Sample link:   

In this sample,Fonts which are listed in fontFamilies of documentEditorSettings will be displayed on font dropdown of text properties pane.  

 

API link:   

 Please let us know if you have any questions.   

Regards,  
Kurthis Banu A.  


Marked as answer

TJ Todd Jensen November 25, 2021 01:19 PM UTC

Thanks, that pointed me in the right direction!




KB Kurthis Banu Abdul Majeeth Syncfusion Team November 25, 2021 01:46 PM UTC

Hi Todd Jensen, 

Thanks for your update. 

Regards, 
Kurthis Banu A. 


Loader.
Up arrow icon