mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 23:20:09 +01:00
MDL-77773 editor_tiny: Improve initial editor size
This commit is contained in:
parent
0b973b52e9
commit
5df8e8fa5f
2
lib/editor/tiny/amd/build/editor.min.js
vendored
2
lib/editor/tiny/amd/build/editor.min.js
vendored
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user