Skip to main content

Notifications

Customer Service forum
Suggested answer

Unable to set default font on the Rich Text Editor control in Dynamics 365 Online

Posted on by 190

Hello,

I am trying to add a new font to the RTE control in Dynamics 365 form and make that new font as a default. I have followed the below URL and implemented same exact steps. I notice that the font I newly added to the list is displaying however it is not being set as a default.

https://docs.microsoft.com/en-us/power-apps/maker/model-driven-apps/rich-text-editor-control

Section Referred: 

Add a new font list and set Brush Script MT as the default font with a default size of 20 px

The user needs to manually select that new font and then enter data, otherwise it is defaulting to a different font. Below is the custom config file I created as a Web Resource. I am not sure what is that i am missing and if there is any other property I need to set. 

Hope someone can help me find the issue here. I am not sure if I need to add any other source file related to this 'Avenir Next LT Pro'.

RTE Custome config code snippet below: 

{
"defaultSupportedProps": {
"enterMode": 2,
"font_names": "Avenir Next LT Pro/'Avenir Next LT Pro Regular',sans-serif;",
"font_defaultLabel": "Avenir Next LT Pro Regular",
"fontSize_sizes": "16/16px",
"fontSize_defaultLabel": "16",
"stickyStyle": {
"font-size": "16px",
"font-family": "Avenir Next LT Pro/'Avenir Next LT Pro Regular',sans-serif"
}
}
"showHtml": false,
}

Default-Font-update-in-D365-RTE-control.png

Categories:
  • CU30051108-0 Profile Picture
    CU30051108-0 2 on at
    Unable to set default font on the Rich Text Editor control in Dynamics 365 Online
    How can I add a custom font?
    I don't understand how the font from the example can work, except if the font is already known somewhere (local?)
  • Suggested answer
    Brekh Profile Picture
    Brekh 190 on at
    RE: Unable to set default font on the Rich Text Editor control in Dynamics 365 Online

    I got this resolved by updating the RTEGlobalConfiguration.json file and added the new font in that file and removed the custom json file attached to the RTE control on the entity form. For now this change is working across the platform and working for anywhere we have the RTE controls.

  • Brekh Profile Picture
    Brekh 190 on at
    RE: Unable to set default font on the Rich Text Editor control in Dynamics 365 Online

    Thanks Vardhan for your response. I was trying to apply this change on only one of the entities and a specific form. It was loading the font but it was changing  only after we explicity select it from drop down options. By default it was setting it to global default font.

    However, I got this resolved now by updating the RTEGlobalConfiguration.json file and added the new font in that file and removed the custom json form from the entity form. For now this change is working across the platform and working for anywhere we have the RTE controls.

  • Suggested answer
    CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: Unable to set default font on the Rich Text Editor control in Dynamics 365 Online

    Hello,

    Pls refer this article and follow the steps,

    https://support.microsoft.com/en-us/office/enable-or-disable-full-rich-text-formatting-in-a-rich-text-box-d3c71c1d-8c88-41e9-9ee5-2ca6a3d0ea67

    I hope it helps,

    Thanks.

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365.

  • Suggested answer
    Vardhan Profile Picture
    Vardhan 65 User Group Leader on at
    RE: Unable to set default font on the Rich Text Editor control in Dynamics 365 Online

    Hi Bhagya, 

    you have followed correct steps !!

    Are you applying this change on email entity ? Also, Can you confirm that the form you applied changes and the form you are testing both are same. 

    BR,

    Vardhan.

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,623 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,463 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans