MDL-77773 editor_tiny: Improve initial editor size

This commit is contained in:
Andrew Nicols 2023-03-28 20:47:49 +08:00
parent 0b973b52e9
commit 5df8e8fa5f
3 changed files with 9 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -209,6 +209,13 @@ const getStandardConfig = (target, tinyMCE, options, plugins) => {
// https://www.tiny.cloud/docs/tinymce/6/editor-important-options/#target
target,
// https://www.tiny.cloud/docs/tinymce/6/customize-ui/#set-maximum-and-minimum-heights-and-widths
// Set the minimum height to the smallest height that we can fit the Menu bar, Tool bar, Status bar and the text area.
// eslint-disable-next-line camelcase
min_height: 175,
// Base the height on the size of the text area.
height: target.clientHeight,
// Set the language.
// https://www.tiny.cloud/docs/tinymce/6/ui-localization/#language
// eslint-disable-next-line camelcase