Forums | Mahara Community

Support /
New family font in the Tinymce


07 March 2018, 20:52

Hi.
I have managed to include family font for the skins. But, how can I include new family font in the Tinymce editor?

Thanks in advance

Robert Lyon's profile picture
Posts: 773

28 March 2018, 14:01

Hi Josep,

Currently the only way to add fonts to the tinymce within Mahara is to adjust the init() call for it.

If you look in htdocs/lib/web.php on (approx) line 350 you will see the hardcoded list of 'font_formats'.

Just add your font to the list.

I've made a wishlist bug to make a change so uploaded/skin fonts can be appended to the list

https://bugs.launchpad.net/mahara/+bug/1759437

Cheers

Robert

2 results