Change WordPress user roles and capabilities › Forums › How to or FAQ › How to disable the Text Editor? – just Visuell Editor should be displayed › Reply To: How to disable the Text Editor? – just Visuell Editor should be displayed
05/09/2016 at 05:00
#2708
Vladimir
Keymaster
Hi Karl,
Add this code to your active theme functions.php file or setup it as must use plugin:
function my_editor_settings($settings) {
if (!current_user_can('administrator')) {
$settings['quicktags'] = false;
}
return $settings;
}
add_filter('wp_editor_settings', 'my_editor_settings');
add_filter('wp_default_editor', create_function('', 'return "tinymce";'));