Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Customize TinyMCE plugins with Theme Blvd `editor`
- * type options.
- */
- function my_editor_tinymce_plugins( $plugins ) {
- $plugins = array(
- 'charmap',
- 'colorpicker',
- 'hr',
- 'lists',
- 'media',
- 'paste',
- 'tabfocus',
- 'textcolor',
- 'fullscreen',
- 'wordpress',
- 'wpautoresize',
- 'wpeditimage',
- 'wpemoji',
- 'wpgallery',
- 'wplink',
- 'wpdialogs',
- 'wptextpattern',
- 'wpview',
- 'image',
- );
- return $plugins;
- }
- add_filter( 'themeblvd_editor_tinymce_plugins', 'my_editor_tinymce_plugins' );
- /**
- * Customize TinyMCE buttons with Theme Blvd `editor`
- * type options.
- */
- function my_editor_tinymce_toolbar( $buttons ) {
- // First row of buttons.
- $buttons['toolbar1'] = array(
- 'formatselect',
- 'bold',
- 'italic',
- 'bullist',
- 'numlist',
- 'blockquote',
- 'alignleft',
- 'aligncenter',
- 'alignright',
- 'link',
- 'wp_more',
- 'spellchecker',
- 'wp_adv',
- );
- // Second row of buttons.
- $buttons['toolbar2'] = array(
- 'strikethrough',
- 'hr',
- 'forecolor',
- 'pastetext',
- 'removeformat',
- 'charmap',
- 'outdent',
- 'indent',
- 'undo',
- 'redo',
- 'wp_help',
- );
- return $buttons;
- }
- add_filter( 'themeblvd_editor_tinymce_toolbar', 'my_editor_tinymce_toolbar' );
Add Comment
Please, Sign In to add comment