Skip to content

Commit

Permalink
Tune options for wp auto resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Piotrowski committed Apr 20, 2020
1 parent 7dbe988 commit 0c77ffe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions core/Rich_Text_No_Media_Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ public static function editor_init()
$settings = array(
'tinymce' => array(
'resize' => true,
'autoresize_min_height' => 0,
'wp_autoresize_on' => false,
'plugins' => 'wpautoresize'
)
);
wp_editor('', 'carbon_settings', $settings);
Expand Down
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RichTextNoMediaField extends Component {

this.node = null;
this.editor = null;
// this.cancelResizeObserver = null;
this.cancelResizeObserver = null;
}

/**
Expand Down Expand Up @@ -132,11 +132,11 @@ class RichTextNoMediaField extends Component {
const editorSetup = (editor) => {
this.editor = editor;

/*editor.on('blur Change', () => {
editor.on('blur Change', () => {
editor.save();

this.handleChange(editor.getContent());
});*/
});
};
const editorOptions = {
...window.tinyMCEPreInit.mceInit.carbon_settings,
Expand Down

0 comments on commit 0c77ffe

Please sign in to comment.