With the default configuration of the autoresize plugin enabled, the tinymcrte.max_height setting is intended to limit the maximum height that the editor field can automatically expand to. It does not do this; the setting does not appear to do anything.
As a work-around, setting tinymce.settings to {"max_height": 500} does work. I therefore suspect that the issue is that the value is being interpreted as a string rather than a number.
Step to reproduce
Test with the default configuration, tinymcerte.max_height = 500 and tinymcerte.plugins = autoresize ….
Open a page for editing and add a bunch of blank lines to the end of the content.
Observed behavior
The editor field auto-resizes without limit.
Expected behavior
The editor field should max out at 500 pixels, and add a scrollbar past that point.
Bug report
Summary
With the default configuration of the autoresize plugin enabled, the
tinymcrte.max_height
setting is intended to limit the maximum height that the editor field can automatically expand to. It does not do this; the setting does not appear to do anything.As a work-around, setting
tinymce.settings
to{"max_height": 500}
does work. I therefore suspect that the issue is that the value is being interpreted as a string rather than a number.Step to reproduce
Test with the default configuration,
tinymcerte.max_height
=500
andtinymcerte.plugins
=autoresize …
.Open a page for editing and add a bunch of blank lines to the end of the content.
Observed behavior
The editor field auto-resizes without limit.
Expected behavior
The editor field should max out at 500 pixels, and add a scrollbar past that point.
Environment
MODX 2.8.4-pl, Chrome 105.