Skip to content

Instantly share code, notes, and snippets.

@gchtr
Created March 13, 2018 21:24
Show Gist options
  • Save gchtr/7c047568b5704d31c8d8ed5f0507243c to your computer and use it in GitHub Desktop.
Save gchtr/7c047568b5704d31c8d8ed5f0507243c to your computer and use it in GitHub Desktop.
<?php
add_filter( 'tiny_mce_before_init', function( $settings ) {
// Set pasting as text as default. No more foreign style in the editor
$settings['paste_as_text'] = true;
return $settings;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment