add license_key configuration, disable invalid value options
This commit is contained in:
parent
5ea8abc7ce
commit
721482e94b
@ -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\ImageAdvtab;
|
||||||
use O3\TinyMCE\Application\Core\TinyMCE\Options\InitInstanceCallback;
|
use O3\TinyMCE\Application\Core\TinyMCE\Options\InitInstanceCallback;
|
||||||
use O3\TinyMCE\Application\Core\TinyMCE\Options\Language;
|
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\MaxHeight;
|
||||||
use O3\TinyMCE\Application\Core\TinyMCE\Options\MaxWidth;
|
use O3\TinyMCE\Application\Core\TinyMCE\Options\MaxWidth;
|
||||||
use O3\TinyMCE\Application\Core\TinyMCE\Options\Menubar;
|
use O3\TinyMCE\Application\Core\TinyMCE\Options\Menubar;
|
||||||
@ -127,6 +128,7 @@ class Configuration
|
|||||||
$this->addOption(oxNew(CacheSuffix::class, $this->loader));
|
$this->addOption(oxNew(CacheSuffix::class, $this->loader));
|
||||||
$this->addOption(oxNew(Selector::class, $this->loader));
|
$this->addOption(oxNew(Selector::class, $this->loader));
|
||||||
$this->addOption(oxNew(InitInstanceCallback::class, $this->loader));
|
$this->addOption(oxNew(InitInstanceCallback::class, $this->loader));
|
||||||
|
$this->addOption(oxNew(LicenseKey::class, $this->loader));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function addGuiOptions(): void
|
protected function addGuiOptions(): void
|
||||||
@ -135,8 +137,8 @@ class Configuration
|
|||||||
$this->addOption(oxNew(Promotion::class, $this->loader));
|
$this->addOption(oxNew(Promotion::class, $this->loader));
|
||||||
$this->addOption(oxNew(ContextMenu::class, $this->loader));
|
$this->addOption(oxNew(ContextMenu::class, $this->loader));
|
||||||
$this->addOption(oxNew(MinHeight::class, $this->loader));
|
$this->addOption(oxNew(MinHeight::class, $this->loader));
|
||||||
$this->addOption(oxNew(MaxHeight::class, $this->loader));
|
//$this->addOption(oxNew(MaxHeight::class, $this->loader));
|
||||||
$this->addOption(oxNew(MaxWidth::class, $this->loader));
|
//$this->addOption(oxNew(MaxWidth::class, $this->loader));
|
||||||
$this->addOption(oxNew(Menubar::class, $this->loader));
|
$this->addOption(oxNew(Menubar::class, $this->loader));
|
||||||
$this->addOption(oxNew(ToolbarSticky::class, $this->loader));
|
$this->addOption(oxNew(ToolbarSticky::class, $this->loader));
|
||||||
$this->addOption(oxNew(ToolbarMode::class, $this->loader));
|
$this->addOption(oxNew(ToolbarMode::class, $this->loader));
|
||||||
|
39
Application/Core/TinyMCE/Options/LicenseKey.php
Normal file
39
Application/Core/TinyMCE/Options/LicenseKey.php
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This file is part of O3-Shop TinyMCE editor module.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, version 3.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but
|
||||||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with O3-Shop. If not, see <http://www.gnu.org/licenses/>
|
||||||
|
*
|
||||||
|
* @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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user