Hello,

I Have this website and I am trying to make the footprint smaller in text size. How to do so?

http://gsa-constructionspecialist.com/home/vision-mission

https://www.tinymce.com/docs/configure/content-formatting/#fontsize_formats

This is the fontsize_formats in tiny mce. I already try to insert a new feature to change font size in tinymce and have not been successful yet.

Can anyone help me out?

Member Avatar
diafol

Seems straightforward from the manual. Can you show your code? Show just the relevant bits - head area and any js sections outside that, in the order that they appear.

Hello,

This is the result:

<script>  

        tinymce.init({
        selector: 'textarea',  
    toolbar: 'fontsizeselect',
    fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt',
    height: 200,
        width: 600,
        content_css : '/assets/tinymce/custom_add.css', 
        plugins: [
               'advlist table autolink lists link image charmap print preview anchor',
               'searchreplace visualblocks code fullscreen',
               'insertdatetime media table contextmenu paste code'
                ],
        toolbar: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | table',
        content_css: "<?php echo site_url('assets/tinymce/css/codepen.min.css'); ?>",
        file_browser_callback: RoxyFileBrowser
        });  

</script>
Member Avatar
diafol
fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt',

Isn't this the default for TinyMCE? What have you changed? I can't see it.

From TinyMCE:

Default Value: '8pt 10pt 12pt 14pt 18pt 24pt 36pt'

fontsize_formats: '8pt 10pt 12pt 14pt 18pt',

I already delete a few points.  Yet, I cannot see the option to change the font size in my tiny mce.  I wonder why?

I still cannot change the font size.
Member Avatar
diafol

Sorry to say but it works perfectly for me. I can.t replicate your problem.

How can it works for you? Can you change the font size?

You have two toolbar arguments. The second one overrides your first and only the first one has fontsizeselect. Merge both into one and it should work.

commented: good catch - I didn't get that far! +15