not work with frontend tinymce
-
provisory fix: wp-emoji-one.php
#------------------------------------------------------------------------------ # Insert WP Emoji One Icon for tinyMCE #------------------------------------------------------------------------------ function wp_emoji_one_addbuttons() { // Don't bother doing this stuff if the current user lacks permissions #if ( !current_user_can('edit_posts') && !current_user_can('edit_pages') ) return; // Add only in Rich Editor mode #if ( get_user_option('rich_editing') == 'true') { // add the button for wp25 in a new way add_filter("mce_external_plugins", 'add_wp_emoji_one_tinymce_plugin'); $wp_emoji_one_setting_opt = get_option('wp_emoji_one_setting_opt'); $button_line = $wp_emoji_one_setting_opt['wp_emoji_one_button_line']; if ($button_line == "2" || $button_line == "3" || $button_line == "4") { add_filter('mce_buttons_'.$button_line, 'register_wp_emoji_one_button'); } else { add_filter('mce_buttons', 'register_wp_emoji_one_button'); } #} }
(just some comment with #)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘not work with frontend tinymce’ is closed to new replies.