Hello all, I hope this is the right place to post this question.
We have a project that requires 2 custom fonts to be added drop down selector within CKEditor. One of these fonts, Rubik is available on https://fonts.google.com/ the other has to be installed and added from the local server.
I have found how to do this using a simple vanilla build of CKEditor outside of DNN but the method does not work for the DNNConnect CKEditor provider build. I have read the blog posts by Steve Krantzman from last month and as I understand it the build used in DNN has been modified and uses a DB table for settings.
We have attempted multiple methods of trying to add the fonts to the CKEditor config with no luck. Can anyone share the proper procedure to add both fonts hosted on Google as well as using locally installed fonts? We are running on a fresh install of DNN v9.7.
Thanks in advance!
Posted By KHalladay on 20 Jan 2021 10:16 AM @AustinGuy We have come across & attempted both of these threads. The first link you provide allows us to add the font names only, if you select the font from the drop down it is not applied properly and displays it as the default font.
Adding the font name to the Editor is not enough. For a custom font to show on the page, you also need to load the source for that font. This means that you will have to add the link to the google fonts resource to you theme or the browser will never be able to load the font and will fallbck to the default font. If you already did that check what kind of HTML the editor is creating when you apply a custom font as there might be a font naming mismatch between the css and html.
Yes this method does display the font properly on the page itself but not within the editor,
That will be confusing for the end users. Where do I add the Google fonts info so that it applies within the editor?
How would it be specified if the font is local?
Thanks
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.