How to add new fonts to tinymce in PrestaShop?

Hi I have just bought your presta module tinymice pro I need to install more fonts. How can I do?

adding new fonts to tinymce rich text editor in PrestaShop

hello
to define font list that is available in the editor please open:
/modules/tinymcepro/lib/tinymce.inc.js

you can find there a code like:
(...)
default_config = {
  editor_selector: ".rte",
  selector: ".rte",
(...)
add there font_formats with list of fonts:
default_config = { font_formats: 'Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats', editor_selector: ".rte",
selector: ".rte",
to add new font just add it to the list of fonts.

after this, on module configuration page hit button "reinstall". then go to some page where you've got extended editor.
if you dont see the changes hit ctrl+f5
Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

1 comments: