better like that (fix post editor)

master
Jean-Christian Paul Denis 2023-04-25 21:14:59 +02:00
parent 0cf94448ea
commit 963568f7d8
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 10 deletions

View File

@ -149,15 +149,7 @@ class BackendBehaviors
*/ */
public static function adminPostHeaders(): string public static function adminPostHeaders(): string
{ {
if (is_null(dcCore::app()->auth) || !Utils::isActive()) { return dcPage::jsModuleLoad(My::id() . '/js/backend.js');
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');
} }
/** /**
@ -171,7 +163,7 @@ class BackendBehaviors
public static function adminPostEditorTags(string $editor, string $context, ArrayObject $alt_tags, string $format): void public static function adminPostEditorTags(string $editor, string $context, ArrayObject $alt_tags, string $format): void
{ {
if ($context == 'post') { if ($context == 'post') {
$alltgas[] = '#post_wtext'; $alt_tags->append('#post_wtext');
} }
} }