diff --git a/Application/Core/TinyMCE/Configuration.php b/Application/Core/TinyMCE/Configuration.php index 21809f4..f203a07 100644 --- a/Application/Core/TinyMCE/Configuration.php +++ b/Application/Core/TinyMCE/Configuration.php @@ -137,8 +137,7 @@ class Configuration $this->addOption(oxNew(Promotion::class, $this->loader)); $this->addOption(oxNew(ContextMenu::class, $this->loader)); $this->addOption(oxNew(MinHeight::class, $this->loader)); - //$this->addOption(oxNew(MaxHeight::class, $this->loader)); - //$this->addOption(oxNew(MaxWidth::class, $this->loader)); + $this->addOption(oxNew(MaxHeight::class, $this->loader)); $this->addOption(oxNew(Menubar::class, $this->loader)); $this->addOption(oxNew(ToolbarSticky::class, $this->loader)); $this->addOption(oxNew(ToolbarMode::class, $this->loader)); diff --git a/Application/Core/TinyMCE/Options/MaxHeight.php b/Application/Core/TinyMCE/Options/MaxHeight.php index bbc16a2..c40aaf4 100644 --- a/Application/Core/TinyMCE/Options/MaxHeight.php +++ b/Application/Core/TinyMCE/Options/MaxHeight.php @@ -29,7 +29,7 @@ class MaxHeight extends AbstractOption public function get(): string { - return '90%'; + return '500'; } public function isQuoted(): bool diff --git a/Application/Core/TinyMCE/Options/MinHeight.php b/Application/Core/TinyMCE/Options/MinHeight.php index 934c7ca..06f4f7b 100644 --- a/Application/Core/TinyMCE/Options/MinHeight.php +++ b/Application/Core/TinyMCE/Options/MinHeight.php @@ -34,9 +34,12 @@ class MinHeight extends AbstractOption $profile = (array) Registry::getSession()->getVariable('profile'); if (array_key_exists(1, $profile)) { - return (string) (max($profile[1] * 20, 350)); + return (string) max( + $profile[1] * 20, + 350 + ); } - return '350'; + return "350"; } }