Guest User

Untitled

a guest
Feb 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <?php
  2. /**
  3. * Customize TinyMCE plugins with Theme Blvd `editor`
  4. * type options.
  5. */
  6. function my_editor_tinymce_plugins( $plugins ) {
  7.  
  8. $plugins = array(
  9. 'charmap',
  10. 'colorpicker',
  11. 'hr',
  12. 'lists',
  13. 'media',
  14. 'paste',
  15. 'tabfocus',
  16. 'textcolor',
  17. 'fullscreen',
  18. 'wordpress',
  19. 'wpautoresize',
  20. 'wpeditimage',
  21. 'wpemoji',
  22. 'wpgallery',
  23. 'wplink',
  24. 'wpdialogs',
  25. 'wptextpattern',
  26. 'wpview',
  27. 'image',
  28. );
  29.  
  30. return $plugins;
  31.  
  32. }
  33. add_filter( 'themeblvd_editor_tinymce_plugins', 'my_editor_tinymce_plugins' );
  34.  
  35. /**
  36. * Customize TinyMCE buttons with Theme Blvd `editor`
  37. * type options.
  38. */
  39. function my_editor_tinymce_toolbar( $buttons ) {
  40.  
  41. // First row of buttons.
  42. $buttons['toolbar1'] = array(
  43. 'formatselect',
  44. 'bold',
  45. 'italic',
  46. 'bullist',
  47. 'numlist',
  48. 'blockquote',
  49. 'alignleft',
  50. 'aligncenter',
  51. 'alignright',
  52. 'link',
  53. 'wp_more',
  54. 'spellchecker',
  55. 'wp_adv',
  56. );
  57.  
  58. // Second row of buttons.
  59. $buttons['toolbar2'] = array(
  60. 'strikethrough',
  61. 'hr',
  62. 'forecolor',
  63. 'pastetext',
  64. 'removeformat',
  65. 'charmap',
  66. 'outdent',
  67. 'indent',
  68. 'undo',
  69. 'redo',
  70. 'wp_help',
  71. );
  72.  
  73. return $buttons;
  74.  
  75. }
  76. add_filter( 'themeblvd_editor_tinymce_toolbar', 'my_editor_tinymce_toolbar' );
Add Comment
Please, Sign In to add comment