MDL-77773 editor_tiny: Improve initial editor size
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user