Definition:
function rich_edit_exists() {}
Determine if TinyMCE is available.
Checks to see if the user has deleted the tinymce files to slim down there WordPress install.
Return values
returns:Whether TinyMCE exists.
Source code
function rich_edit_exists() {
global $wp_rich_edit_exists;
if ( !isset($wp_rich_edit_exists) )
$wp_rich_edit_exists = file_exists(ABSPATH . WPINC . '/js/tinymce/tiny_mce.js');
return $wp_rich_edit_exists;
}
2751

February 12, 2011 


No comments yet... Be the first to leave a reply!