How To Add A New Font

Hi, I want to add a new font to TinyMCE eidtor, any idea ? Thanks !

Try to add font_formats parameter to the following file:

js/tygh/editors/tinymce.editor.js

https://www.tinymce.com/docs/configure/content-formatting/#font_formats

Try to add font_formats parameter to the following file:

js/tygh/editors/tinymce.editor.js

https://www.tinymce.com/docs/configure/content-formatting/#font_formats

Very appreciate for your reply ! Because it's a Japanese Font "MS PGOTHIC", still not figure out how to add such codes.

Sorry, I do not have great experience with this editor. May be someone else can help you here

Sorry, I do not have great experience with this editor. May be someone else can help you here

Thank you very much ! Please PM me your Skybe, I am the CS-CART China Reseller, we may can cooperate in future.

Thank you very much ! Please PM me your Skybe, I am the CS-CART China Reseller, we may can cooperate in future.

Skype: eComLabs

Feel free to contact our team

You can't place a script tag in the content_style configuration option - that is expected to be a string of valid CSS.

I would do the following.

Create an external CSS file and @import the correct font file into that CSS along with any styles you want. Then you can use content_css to reference that external CSS file. Any font loaded in that CSS file will be available in TinyMCE.

On your hard drive, go to your joomla file, then, plugins/editors/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js

(I had to open my .js file with notepad. The default MS script reader kept giving me errors. so, to do this, right click and choose "open with". Browse programs if necessary.)

In the .js file, look for the listing of fonts. Add what you'd like. I mimicked the way the other fonts were displayed. I.E., I typed the name with capitals, then the =, then typed the name with lower case.

Save your changes and the font will show up in the drop down menu in tinymce! icon_cool.gif

Thank you very much ! This problem was fixed.