mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
Block Editor: Expose value of user_can_richedit()
.
In order for the Block Editor to know whether to allow visual editing, it needs to know the value of `user_can_richedit()`. Props youknowriad. Fixes #45375. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43916 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f02568afb4
commit
8e8dca6069
@ -273,6 +273,7 @@ $editor_settings = array(
|
||||
'allowedMimeTypes' => get_allowed_mime_types(),
|
||||
'styles' => $styles,
|
||||
'imageSizes' => $available_image_sizes,
|
||||
'richEditingEnabled' => user_can_richedit(),
|
||||
'postLock' => $lock_details,
|
||||
'postLockUtils' => array(
|
||||
'nonce' => wp_create_nonce( 'lock-post_' . $post->ID ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user