This plugin automatically resizes the editor to the content inside it. It is typically used to prevent the editor from expanding infinitely as a user types into the editable area. For example, by giving the max_height option a value the editor will stop resizing when the set value is reached.
tinymce.init({
selector: 'textarea', // change this value according to your HTML
plugins: 'autoresize'
});These settings affect the execution of the Autoresize plugin, including changes to the minimum width, height, bottom margin, and default initialization state.
The Autoresize plugin provides the following JavaScript command.