3
Contributors
8
Replies
57
Views
9 Months
Discussion Span
Last Post by Traevel
0

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.

0

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>

Edited by davy_yg

0
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'

Edited by diafol

0
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.
0

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

1

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.

Votes + Comments
good catch - I didn't get that far!
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.