Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Add A New Font Rate Topic   - - - - -

 
  • michael
  • Senior Member
  • Authorized Reseller
  • Join Date: 27-Oct 06
  • 155 posts

Posted 13 June 2018 - 04:01 AM #1

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


Do whatever you want to do....

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18009 posts

Posted 13 June 2018 - 06:29 AM #2

Try to add font_formats parameter to the following file:

 

js/tygh/editors/tinymce.editor.js

 

https://www.tinymce....g/#font_formats


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • michael
  • Senior Member
  • Authorized Reseller
  • Join Date: 27-Oct 06
  • 155 posts

Posted 13 June 2018 - 01:00 PM #3

Try to add font_formats parameter to the following file:

 

js/tygh/editors/tinymce.editor.js

 

https://www.tinymce....g/#font_formats

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


Do whatever you want to do....

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18009 posts

Posted 13 June 2018 - 01:41 PM #4

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • michael
  • Senior Member
  • Authorized Reseller
  • Join Date: 27-Oct 06
  • 155 posts

Posted 20 June 2018 - 10:28 AM #5

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.


Do whatever you want to do....

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18009 posts

Posted 20 June 2018 - 12:38 PM #6

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 21 June 2018 - 04:50 AM #7

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.



 

Posted 21 June 2018 - 12:13 PM #8

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 



 
  • michael
  • Senior Member
  • Authorized Reseller
  • Join Date: 27-Oct 06
  • 155 posts

Posted 27 June 2018 - 04:54 AM #9

Thank you very much ! This problem was fixed.


Do whatever you want to do....