TinyMCE - How to add different text size

TinyMCE - How to add different text size

by Philippe Roth -
Number of replies: 2

Dear all,

Is there a way to add text size 11, and others to TinyMCE?

Can it be done in the Custom configuration field, under TinyMCE / General settings and how? I cannot find any example of the JSON format to use as configuration...

Many thanks for your help,
Philippe

Average of ratings: -
In reply to Philippe Roth

Re: TinyMCE - How to add different text size

by Philippe Roth -

No one with some help?

Please...

Phil

In reply to Philippe Roth

Re: TinyMCE - How to add different text size

by Colin Fraser -
Picture of Documentation writers Picture of Testers

If I have it right, the Moodle TinyMCE is not the full version, but a trimmed one that provides the immediately required functionality. AFAIK, you can reset text sizes by finding the fontsizeselect button code and replace the existing code with this. 

tinymce.init({
    selector: 'textarea',
    toolbar: 'fontsizeselect',
    fontsize_formats: "8px 9px 10px 11px 12px 13px 14px 15px 18px 24px 36px 72px"
});

Check to make sure the code says what it says above, just add in the additional sizes. Where it is in the code I have no idea, Peter has done an excellent job on obscuring everything..smile