rich_edit_exists

函式
rich_edit_exists ( No parameters )
返回值
  • (bool) Whether TinyMCE exists.
定義位置
相關方法
comment_existswp_richedit_preemail_existsdomain_existstag_exists
引入
2.1.0
棄用
3.9.0

rich_edit_exists: 這是一個WordPress函式,用來檢查正在使用的瀏覽器是否支援富文字編輯器。富文字編輯器是用來建立和編輯具有文字格式選項的內容。如果瀏覽器不支援富文字編輯器,該函式返回false。

確定TinyMCE是否可用。

檢查使用者是否已經刪除了tinymce檔案以減少他們的WordPress安裝。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function rich_edit_exists() {
global $wp_rich_edit_exists;
_deprecated_function( __FUNCTION__, '3.9.0' );
if ( ! isset( $wp_rich_edit_exists ) )
$wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' );
return $wp_rich_edit_exists;
}
function rich_edit_exists() { global $wp_rich_edit_exists; _deprecated_function( __FUNCTION__, '3.9.0' ); if ( ! isset( $wp_rich_edit_exists ) ) $wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' ); return $wp_rich_edit_exists; }
function rich_edit_exists() {
	global $wp_rich_edit_exists;
	_deprecated_function( __FUNCTION__, '3.9.0' );

	if ( ! isset( $wp_rich_edit_exists ) )
		$wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' );

	return $wp_rich_edit_exists;
}

常見問題

FAQs
檢視更多 >