Skip to content

Commit

Permalink
Remove tiny mce autoresize
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Piotrowski committed Apr 17, 2020
1 parent 98e4ac4 commit 2768362
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions core/Rich_Text_No_Media_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,10 @@ public static function editor_init()
$settings = array(
'tinymce' => array(
'resize' => true,
'wp_autoresize_on' => true,
'wp_autoresize_on' => false,
)
);

add_filter('user_can_richedit', '__return_true');
wp_editor('', 'carbon_settings', $settings);
remove_filter('user_can_richedit', '__return_true');
?>
</div>
<?php
Expand Down

0 comments on commit 2768362

Please sign in to comment.