Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.29 KB

File metadata and controls

37 lines (25 loc) · 1.29 KB

Autoresize plugin

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.

Basic setup

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'autoresize'
});

Options

These settings affect the execution of the Autoresize plugin, including changes to the minimum width, height, bottom margin, and default initialization state.

Commands

The Autoresize plugin provides the following {productname} command.