From ee85e47c3b0a4b957f098c3dde93ef9d3b9fe8f9 Mon Sep 17 00:00:00 2001 From: Deltacms Date: Tue, 7 Feb 2023 10:23:09 +0100 Subject: [PATCH] tinymce page suite --- core/module/page/page.php | 1 + core/module/page/view/edit/edit.php | 13 ++++--------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/core/module/page/page.php b/core/module/page/page.php index d07a70e..d0a773d 100644 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -551,6 +551,7 @@ class page extends common { // Valeurs en sortie $this->addOutput([ 'title' => $this->getData(['page', $this->getUrl(2), 'title']), + 'vendor' => ['tinymce'], 'view' => 'edit' ]); } diff --git a/core/module/page/view/edit/edit.php b/core/module/page/view/edit/edit.php index 2830c19..90fa492 100644 --- a/core/module/page/view/edit/edit.php +++ b/core/module/page/view/edit/edit.php @@ -1,21 +1,16 @@ getData(['config', 'i18n', 'langAdmin']) . '/lex_page.php'); + +$initSnipcart = false; +if ($this->getData(['page', $this->getUrl(2), 'moduleId']) === 'snipcart' ) $initSnipcart = true; ?> '; -if ($this->getData(['page', $this->getUrl(2), 'moduleId']) === 'snipcart' ){ - echo ''; -} else { - echo ''; -} -echo ''; - echo template::formOpen('pageEditForm'); ?>