Text editors

TinyMCE - How to add different text size

 
Master Graduation Ceremony
TinyMCE - How to add different text size
 

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: -
Master Graduation Ceremony
Re: TinyMCE - How to add different text size
 

No one with some help?

Please...

Phil

 
Average of ratings: -
moi!!! it is what is is...
Re: TinyMCE - How to add different text size
Documentation writersParticularly helpful Moodlers

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

 
Average of ratings: -