Post by Boppe » Tue Dec 11, 2018 5:13 pm

OC 2.3.0.2

I want to add fonts to the already installed fonts in Ckeditor. I've read the forum and documentations on ckeditor.com.
As I understand I have to make changes in admin/view/javascript/ckeditor/config.js
After
config.font_names

However the only content in config.js is:
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/

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

There is no config.font_names

Does somebody knows how to solve my problem?
Thanks!

Active Member

Posts

Joined
Mon Apr 29, 2013 10:09 pm

Post by Boppe » Tue Dec 11, 2018 7:55 pm

OK, it seems like ckeditor is the file that should be edited.
There is a part:
;CKEDITOR.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;Verdana/Verdana, Geneva, sans-serif";

I want to add two fonts, Lithos Pro and Aclonica.

I'm unsure how the edit the file. Should it be like below?

;CKEDITOR.config.font_names="Lithos Pro/Lithos Pro;Aclonica/Aclonica;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;Verdana/Verdana, Geneva, sans-serif";

Active Member

Posts

Joined
Mon Apr 29, 2013 10:09 pm

Post by Boppe » Tue Dec 11, 2018 8:13 pm

Thanks a lot for all of your help (said with a lot of irony).
I chose to use Google web fonts in CK editor. No need to mess with codes.

Active Member

Posts

Joined
Mon Apr 29, 2013 10:09 pm
Who is online

Users browsing this forum: No registered users and 339 guests