From 0622f288dd612098a2ec9c364d00972d59a466c8 Mon Sep 17 00:00:00 2001 From: "Im[F(x)]" Date: Thu, 14 Mar 2024 19:13:30 +0200 Subject: [PATCH] * actual CSP setting for both editors --- Plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index 09a5027..2e6e885 100644 --- a/Plugin.php +++ b/Plugin.php @@ -36,9 +36,10 @@ public function initialize() else if (!str_contains($cspRules['frame-src'], "https://stackedit.net/")) { $cspRules['frame-src'] .= " https://stackedit.net/"; } - $this->setContentSecurityPolicy($cspRules); } + $this->setContentSecurityPolicy($cspRules); + $this->template->hook->attach('template:config:sidebar', 'WysiwygMDEditor:config/sidebar'); $this->route->addRoute('settings/wysiwygmdeditor', 'WysiwygMDEditorConfigController', 'show', 'WysiwygMDEditor');