How to remove wordpress editor from wp admin

Either add the following code in themes functions.php, or wp-config.php file:

define( 'DISALLOW_FILE_EDIT', true );