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



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?

Recommended Answers

All 9 Replies

Member Avatar for 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.


This is the result:


        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

Member Avatar for 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 for 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

TinyMCE WYSIWYG Editor allows you to change that quickly and easily. For now, they have multiple add-ins/plugins that allow the editing much easier.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.