⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Add New Font Type in Text editor



tofayelahmed
  • profile picture
  • Member

Posted 03 November 2012 - 11:00 AM

Hi all!
I want to add new font type (like calibri or etc) in the text editor font list.
Please help.

victor
  • profile picture
  • Member

Posted 03 November 2012 - 12:34 PM

HI!
Change the config "assets/grocery_crud/texteditor/ckeditor/config.js":


CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';

config.font_names =
'Arial/Arial, Helvetica, sans-serif;' +
'Comic Sans MS/Comic Sans MS, cursive;' +
'Courier New/Courier New, Courier, monospace;' +
'Georgia/Georgia, serif;' +
'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' +
'Tahoma/Tahoma, Geneva, sans-serif;' +
'Times New Roman/Times New Roman, Times, serif;' +
'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' +
'Calibri/Calibri, Verdana, Geneva, sans-serif;' + /* here is your font */
'Verdana/Verdana, Geneva, sans-serif';
};