Changeset 4606 for trunk/includes/common/template-tags.php
- Timestamp:
- 12/20/2012 01:18:32 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/common/template-tags.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/template-tags.php
r4604 r4606 1690 1690 1691 1691 // Enable additional TinyMCE plugins before outputting the editor 1692 add_filter( 'tiny_mce_plugins', 'bbp_get_tiny_mce_plugins' ); 1693 add_filter( 'teeny_mce_plugins', 'bbp_get_tiny_mce_plugins' ); 1692 add_filter( 'tiny_mce_plugins', 'bbp_get_tiny_mce_plugins' ); 1693 add_filter( 'teeny_mce_plugins', 'bbp_get_tiny_mce_plugins' ); 1694 add_filter( 'teeny_mce_buttons', 'bbp_get_teeny_mce_buttons' ); 1694 1695 1695 1696 // Output the editor … … 1708 1709 1709 1710 // Remove additional TinyMCE plugins after outputting the editor 1710 remove_filter( 'tiny_mce_plugins', 'bbp_get_tiny_mce_plugins' ); 1711 remove_filter( 'teeny_mce_plugins', 'bbp_get_tiny_mce_plugins' ); 1711 remove_filter( 'tiny_mce_plugins', 'bbp_get_tiny_mce_plugins' ); 1712 remove_filter( 'teeny_mce_plugins', 'bbp_get_tiny_mce_plugins' ); 1713 remove_filter( 'teeny_mce_buttons', 'bbp_get_teeny_mce_buttons' ); 1712 1714 1713 1715 /** … … 1760 1762 1761 1763 return apply_filters( 'bbp_get_tiny_mce_plugins', $plugins ); 1764 } 1765 1766 /** 1767 * Edit TinyMCE buttons to match allowedtags 1768 * 1769 * @since bbPress (r4605) 1770 * 1771 * @param array $buttons 1772 * @see teeny_mce_buttons 1773 * @return array 1774 */ 1775 function bbp_get_teeny_mce_buttons( $buttons = array() ) { 1776 1777 // Remove some buttons from TeenyMCE 1778 $buttons = array_diff( $buttons, array( 1779 'underline', 1780 'justifyleft', 1781 'justifycenter', 1782 'justifyright' 1783 ) ); 1784 1785 // Images? 1786 //array_push( $buttons, 'image' ); 1787 1788 return apply_filters( 'bbp_get_teeny_mce_buttons', $buttons ); 1762 1789 } 1763 1790
Note: See TracChangeset
for help on using the changeset viewer.