Skip to content

Commit

Permalink
Ignore "Disable visual editor" setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf committed Mar 16, 2018
1 parent 15782d5 commit e75be7a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,12 @@ function gutenberg_editor_scripts_and_styles( $hook ) {
// to disable it outright.
wp_enqueue_script( 'heartbeat' );

// Ignore Classic Editor's `rich_editing` user option, aka "Disable visual
// editor". Forcing this to be true guarantees that TinyMCE and its plugins
// are available in Gutenberg. Fixes
// https://github.com/WordPress/gutenberg/issues/5667.
add_filter( 'user_can_richedit', '__return_true' );

wp_enqueue_script( 'wp-edit-post' );

// Register `wp-utils` as a dependency of `word-count` to ensure that
Expand Down

0 comments on commit e75be7a

Please sign in to comment.