From 963568f7d8e7dacdb68372cffe8819c02ae03253 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 25 Apr 2023 21:14:59 +0200 Subject: [PATCH] better like that (fix post editor) --- src/BackendBehaviors.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/BackendBehaviors.php b/src/BackendBehaviors.php index 9074bfc..f3b6691 100644 --- a/src/BackendBehaviors.php +++ b/src/BackendBehaviors.php @@ -149,15 +149,7 @@ class BackendBehaviors */ public static function adminPostHeaders(): string { - if (is_null(dcCore::app()->auth) || !Utils::isActive()) { - return ''; - } - - $editor = dcCore::app()->auth->getOption('editor'); - - return - //dcCore::app()->callBehavior('adminPostEditor', $editor['xhtml'], 'pwt', ['#post_wtext'], 'xhtml') . - dcPage::jsModuleLoad(My::id() . '/js/backend.js'); + return dcPage::jsModuleLoad(My::id() . '/js/backend.js'); } /** @@ -171,7 +163,7 @@ class BackendBehaviors public static function adminPostEditorTags(string $editor, string $context, ArrayObject $alt_tags, string $format): void { if ($context == 'post') { - $alltgas[] = '#post_wtext'; + $alt_tags->append('#post_wtext'); } }