tinymce / tinymce/tinymce

max_height affects manual resizing when autoresize is ON

Open
#6,567 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin: autoresize status: escalated type: question
Dominant language
TypeScript
Stars
16.3k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

What is the current behavior?
When autoresize is ON, max_height option sets the maximum height the editor can automatically expand to, and also blocks manual resizing above specified value

Please provide the steps to reproduce.

tinymce.init({
	selector: '#mce',
	plugins: 'autoresize',
	min_height: 150,
	max_height: 500,
	resize: true,
});

What is the expected behavior?

Without the autoresize plugin, max_height allows you to set the maximum height that a user can stretch the entire TinyMCE interface

With the autoresize plugin, max_height sets the maximum height the editor can automatically expand to.
But it shouldn't affect manual resizing if resize is set to true.

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?
This issue happens in v5.x.x
In previous versions autoresize_max_height was working correctly.
Basing on migration docs the autoresize_max_height was replaced with max_height in v5.x.x

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the autoresize plugin and the max_height/resize option handling described in the reproduction, then compare it with the migration documentation's autoresize_max_height behavior. Confirm that manual resizing can exceed max_height while automatic expansion remains capped, using the provided TinyMCE initialization as the regression case.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.