Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Toolbars for WYSIWYG #53

Open
d4mation opened this issue Mar 15, 2018 · 1 comment
Open

Default Toolbars for WYSIWYG #53

d4mation opened this issue Mar 15, 2018 · 1 comment

Comments

@d4mation
Copy link
Member

All of the defaults may be overbearing, but certain ones like the Heading selector can be useful to have alongside of the Bold and Italics buttons.

They all seem to work aside from Distraction Free Writing (Which I excluded)

I tried to add a custom TinyMCE button and for whatever reason that one wouldn't load. Could be something on my end though.

Here's the necessary settings:

moneyball_do_field_textarea( array(
    'name' => 'home_hero_text',
    'label' => '<strong>' . __( 'Home Hero Text', 'moneyball-sportswear-theme' ) . '</strong>',
    'group' => 'moneyball_home_hero',
    'wysiwyg' => true,
    'wysiwyg_options' => array(
        'mediaButtons' => true,
        'tinymce' => array(
            'toolbar1' => 'formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,wp_more,wp_adv',
            'toolbar2' => 'strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help'
        ),
    ),
) );

image

@d4mation
Copy link
Member Author

Also, if possible, being able to inherit things from the primary, editor WYSIWYG instance would be cool.

I used a Filter to restrict colors for text in TinyMCE and it only applied to the editor, apparently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant