Browse Source

remove emoji from tinymce

windhamdavid 9 years ago
parent
commit
97af6369d2
1 changed files with 8 additions and 0 deletions
  1. 8 0
      inc/tweaks.php

+ 8 - 0
inc/tweaks.php

@@ -35,6 +35,14 @@ function dw_hide() {
     </style>
 <?php }
 
+function disable_emojis_tinymce( $plugins ) {
+  if ( is_array( $plugins ) ) {
+    return array_diff( $plugins, array( 'wpemoji' ) );
+  } else {
+    return array();
+  }
+}
+
 function disable_emojis() {
 	remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
 	remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );