How do I control the size of the TinyMCE RTE when editing content on a resource? The editor gets so big the toolbar scrolls of the top of the page.
I looked in the system settings for TinyMCE RTE but did not find one to control the size.
Images:
Editor extends off the screen:
Toolbar is not displaying with long documents:
jako
July 20, 2022, 7:31am
2
You can fill {max_height: 500} into tinymcerte.settings or add that option inside an existing JSON array in that setting.
I entered {max_height: 500} into tinymcerte.settings. but that did not control the size. But luckily the tinymce docs for max_height was on the same page for the autoresize plugin. I removed autoresize from the plugin list and the issue was resolved.
@jako , thanks for putting me on the correct path to the solution.
Roy
jako
July 20, 2022, 3:32pm
4
Then the value is not right. The autoresize plugin is added automatically. A max_height default will be added in the next version.
@jako thanks. I appreciate everything you do for the MODX community.
Roy
jako
July 20, 2022, 6:36pm
6
Oh, I forgot to quote the key. It should be: {"max_height":500}
The autoresize plugin is necessary for ContentBlocks. See Lacking a reasonable height in (narrow) ContentBlocks layout · Issue #116 · modxcms/tinymce-rte · GitHub
Yes, that did the job.
Again thanks for your assistance.
Roy