Search code examples
javascriptcss.netfontsdotnetnuke

Add more font names in the Dnn Site in edit content


Can some one help me on how to add more font names in the drop down list as of now we have only 9 i want to add one more font of my own and use it. I am currently using the fckeditor the dnn site.

I tried installing the font i need on my local machine and then added it on the fckconfig.js file, reset iis, clear browser cache and it did not work, Any other guidance will be helpful.

Thank You


Solution

  • What is your DNN version? FckEditor became obsolete in 2010, see http://www.dnnsoftware.com/wiki/fckeditor-provider.

    But there are more than 1 fckconfig.js files to be found in the DNN installation. Edit the config files in the following folders and see if it works.

    \Providers\HtmlEditorProviders\Fck\Custom
    
    \Providers\HtmlEditorProviders\Fck\fckeditor\editor\_source\internals
    
    \Providers\HtmlEditorProviders\Fck\fckeditor
    

    UPDATE: You need to edit the config file in the "Custom" folder. It worked here on a DNN test installation.

    FCKConfig.FontNames = 'Test Font;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;