tinymce-docs icon indicating copy to clipboard operation
tinymce-docs copied to clipboard

editor height not defaulting to the height of the replaced element

Open jcobban opened this issue 5 years ago • 3 comments

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/

jcobban avatar Jan 06 '21 06:01 jcobban

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

tylerkelly13 avatar Jan 06 '21 23:01 tylerkelly13

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 height attribute only works on some HTML elements.
  • Currently the minimum default height is 200px - this overrides HTML heights. To override this minimum, use the height setting.

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?

metricjs avatar Jan 07 '21 00:01 metricjs

I would like a 36px tall textarea editor with no menu or toolbars other than the quickbars_selection_toolbar.

jordanade avatar Feb 13 '24 23:02 jordanade