eckinox / tinymce-bundle

TinyMCE 6 integration for your Symfony apps and forms
MIT License
20 stars 2 forks source link

Default font size #5

Closed Akrzem closed 6 months ago

Akrzem commented 1 year ago

I use tinymce-bundle in Symfony 6 in form type - TinymceType::class

How to set default fontsize - font_size_formats

In doc where is:

tinymce.init({ selector: 'textarea', // change this value according to your HTML toolbar: 'fontsize', font_size_formats: '8pt 10pt 12pt 14pt 16pt 18pt 24pt 36pt 48pt' });

EmilePerron commented 1 year ago

Hey @Akrzem,

I think this is what you're looking for: https://www.tiny.cloud/docs/tinymce/6/webcomponent-ref/#setting-additional-configuration-options

A more detailed example of a similar issue was provided here: https://github.com/eckinox/tinymce-bundle/issues/4#issuecomment-1405032707

Hope that helps!