New font-family in editor

Questions about how to use the online - editors and suggestions how to improve them
Post Reply
maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

New font-family in editor

Post by maeg » Mon May 13, 2013 3:02 pm

Hi

I have bbe reading this topic http://www.cmsimpleforum.com/viewtopic.php?f=7&t=4158, but there my be a way to do it.

On one of my clients websites i have made this solution, where i add a new font to the menu, and it seem to work i all browser

I uploade the 2 fonts to the root of the server and add this code in the head of the template

Code: Select all

<style type="text/css">
@font-face {
 font-family: Horner;
 src: url("Eurostile_Extended__2.eot") /* EOT file for IE */
}
@font-face {
 font-family: Horner; 
 src: url("Eurostile_Extended__2.ttf") /* TTF file for CSS3 browsers */
}
</style>
But there my be a way, so i can select the font-family from the editor.

Dose anyone have a ide how.....???

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: New font-family in editor

Post by cmb » Mon May 13, 2013 4:23 pm

Hi maeg,

the font select box of tinyMCE can be customized by adding an appropriate definition of theme_advanced_fonts to the init_*.js in use.

I suppose there's a similar feature for CKEditor.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply