Changeset 4606
- Timestamp:
- 12/20/2012 01:18:32 PM (13 years ago)
- Location:
- trunk/includes/common
- Files:
-
- 2 edited
-
kses.php (modified) (2 diffs)
-
template-tags.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/kses.php
r4605 r4606 42 42 'em' => array(), 43 43 'strong' => array(), 44 'span' => array(45 'style' => true46 ),47 44 'del' => array( 48 45 'datetime' => true, … … 57 54 58 55 // Images 56 /* 59 57 'img' => array( 60 58 'src' => true, 59 'border' => true, 61 60 'alt' => true, 62 61 'height' => true, 63 62 'width' => true, 64 63 ) 64 */ 65 65 ) ); 66 66 } -
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.