Whether the user should have a WYSIWIG editor.
Checks that the user requires a WYSIWIG editor and that the editor is supported in the user's browser.
<?php user_can_richedit(); ?>
This function does not accept any parameters.
Display an editor if the user can use it:
<?php
if ( user_can_richedit() ) {
wp_editor( $content, 'mycustomeditor' );
} else {
echo 'You cannot use the rich editor';
}
?>
Since: 2.0.0
user_can_richedit() is located in wp-includes/general-template.php
Editor Functions: wp_editor(), the_editor(), wp_default_editor(), user_can_richedit()