From c6bd44f4661af0b53b8852416cbcf94618b524fd Mon Sep 17 00:00:00 2001 From: O3-Shop Date: Thu, 20 Apr 2023 23:25:40 +0200 Subject: [PATCH] add custom option hook --- Application/Core/TinyMCE/Configuration.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Application/Core/TinyMCE/Configuration.php b/Application/Core/TinyMCE/Configuration.php index b4db64c..84ca31b 100644 --- a/Application/Core/TinyMCE/Configuration.php +++ b/Application/Core/TinyMCE/Configuration.php @@ -73,6 +73,7 @@ class Configuration $this->addUrlHandling(); $this->addPlugins(); $this->addToolbar(); + $this->addCustomOptions(); } protected function addOption(OptionInterface $optionInstance): void @@ -90,6 +91,17 @@ class Configuration $this->options[$optionInstance->getKey()] = $option; } + /** + * @param string $optionKey + * @return void + */ + protected function removeOption(string $optionKey): void + { + if (isset($this->options[$optionKey])) { + unset($this->options[$optionKey]); + } + } + public function getConfig(): string { $sConfig = ''; @@ -166,4 +178,8 @@ class Configuration { $this->addOption(oxNew(Toolbar::class, $this->loader)); } + + protected function addCustomOptions(): void + { + } }