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');