mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-24 01:32:47 +00: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, danielbachhuber. Merges [43916] into trunk. Fixes #45375. git-svn-id: https://develop.svn.wordpress.org/trunk@44267 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ceb5011f6a
commit
e0942aec0c
@ -283,6 +283,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…
Reference in New Issue
Block a user