Skip to content

Commit

Permalink
Ignore "Disable visual editor" setting (#5670)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf authored and mtias committed Mar 20, 2018
1 parent ca723cc commit 1f1f49d
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 @@ -802,6 +802,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 1f1f49d

Please sign in to comment.