editor height not defaulting to the height of the replaced element
I want to control the height of individual editors but TinyMCE seems to ignore all html settings. This seems to contradict the statement in the description of the global height parameter: The default value of this option is set to the height of the HTML element TinyMCE replaces. For example, the pixel height of a textarea." I cannot find any documentation of this.
affected page: https://www.tiny.cloud/docs/general-configuration-guide/customize-ui/
Hi @jcobban,
This looks to be a bug in TinyMCE.
I'll transfer this issue to the tinymce/tinymce repository so the developers can have a look into this issue.
Tyler
Hi @jcobban, thanks for reporting this. We've investigated and there are some details regarding default height in TinyMCE 5.x that aren't currently documented. We will schedule work to fix this in the docs. For your own reference:
- We recommend using a height style instead of an attribute, as the
heightattribute only works on some HTML elements. - Currently the minimum default height is 200px - this overrides HTML heights. To override this minimum, use the
heightsetting.
I'm going to transfer this back to the docs repo so the docs can be clarified.
We will also discuss whether we should change the 200px minimum. To help us with that, could you please tell us what heights you are using in your application?
I would like a 36px tall textarea editor with no menu or toolbars other than the quickbars_selection_toolbar.