• Resolved bigneno

    (@bigneno)


    Hi,
    Is there any way to modify fontsize_formats without editing plugin files?
    I’d like to set:

    $init['fontsize_formats'] = '8px 10px 12px 14px 16px 18px 20px 22px 24px 26px 28px 30px 32px 34px 36px';

    Is there any add_action or add_filter hack which I could insert into my functions.php? Thanks.

    https://ww.wp.xz.cn/plugins/tinymce-advanced/

Viewing 6 replies - 1 through 6 (of 6 total)
  • My problem exactly, I did this:

    1. Went to Settings>TinyMCE Advanced
    2. Advanced section: checked box for Replace font size settings
    3. Saved settings
    4. Went to line 484 in file: /plugins/tinymce-advanced/tadv_admin.php
    – added the sizes I wanted.

    Backup of the file and replace when/if update comes, if only updating the line of code should be ok. I am sure there are more elaborate ways to do it but this did it for me.

    I take it back, mod of the php didn’t work, so the values must be somewhere else, possibly in an js file? or elsewhere?

    Thread Starter bigneno

    (@bigneno)

    Those values are in /plugins/tinymce-advanced/tinymce-advanced.php file (editing works), but I don’t want to edit it on every plugin update

    ok.. tinymcs-advanced.php line 452 🙂 Bingo

    bigneno, thanks just detected it. I guess the only way to avoid it would be to refer to somewhere else but then again you’d still have to add the references for every update.

    I find ckeditor easier to customize in this respect. Maybe because being used to it.

    I don’t know how often they will push out updates for this particular add-on but speaking for myself it’s ok as long as I know where to apply the change.

    Plugin Author Andrew Ozz

    (@azaozz)

    Or you can use https://ww.wp.xz.cn/plugins/advanced-tinymce-configuration/ to override that setting to anything you want 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘modify fontsize_formats?’ is closed to new replies.