diff --git a/Application/Core/TinyMCE/Configuration.php b/Application/Core/TinyMCE/Configuration.php index 84ca31b..21809f4 100644 --- a/Application/Core/TinyMCE/Configuration.php +++ b/Application/Core/TinyMCE/Configuration.php @@ -34,6 +34,7 @@ use O3\TinyMCE\Application\Core\TinyMCE\Options\FilemanagerUrl; use O3\TinyMCE\Application\Core\TinyMCE\Options\ImageAdvtab; use O3\TinyMCE\Application\Core\TinyMCE\Options\InitInstanceCallback; use O3\TinyMCE\Application\Core\TinyMCE\Options\Language; +use O3\TinyMCE\Application\Core\TinyMCE\Options\LicenseKey; use O3\TinyMCE\Application\Core\TinyMCE\Options\MaxHeight; use O3\TinyMCE\Application\Core\TinyMCE\Options\MaxWidth; use O3\TinyMCE\Application\Core\TinyMCE\Options\Menubar; @@ -127,6 +128,7 @@ class Configuration $this->addOption(oxNew(CacheSuffix::class, $this->loader)); $this->addOption(oxNew(Selector::class, $this->loader)); $this->addOption(oxNew(InitInstanceCallback::class, $this->loader)); + $this->addOption(oxNew(LicenseKey::class, $this->loader)); } protected function addGuiOptions(): void @@ -135,8 +137,8 @@ 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(MaxWidth::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/LicenseKey.php b/Application/Core/TinyMCE/Options/LicenseKey.php new file mode 100644 index 0000000..9cda682 --- /dev/null +++ b/Application/Core/TinyMCE/Options/LicenseKey.php @@ -0,0 +1,39 @@ + + * + * @copyright Copyright (c) 2022 Marat Bedoev, bestlife AG + * @copyright Copyright (c) 2023 O3-Shop (https://www.o3-shop.com) + * @license https://www.gnu.org/licenses/gpl-3.0 GNU General Public License 3 (GPLv3) + */ + +declare(strict_types=1); + +namespace O3\TinyMCE\Application\Core\TinyMCE\Options; + +class LicenseKey extends AbstractOption +{ + protected string $key = 'license_key'; + + public function get(): string + { + return 'gpl'; + } + + public function isQuoted(): bool + { + return true; + } +}