From 490bdfa7db66d5e8eb5e7bf3e41fd016274213e4 Mon Sep 17 00:00:00 2001 From: Deltacms Date: Mon, 6 Feb 2023 18:29:43 +0100 Subject: [PATCH] tinymce dans body avec theme, blog, news --- core/module/theme/theme.php | 3 ++- core/module/theme/view/header/header.php | 14 ++------------ module/blog/blog.php | 6 ++++-- module/blog/view/add/add.php | 8 +++----- module/blog/view/edit/edit.php | 8 +++----- module/news/news.php | 6 ++++-- module/news/view/add/add.php | 7 ++----- module/news/view/edit/edit.php | 7 ++----- 8 files changed, 22 insertions(+), 37 deletions(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index c6b07d6..fb6a6c4 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -523,7 +523,8 @@ class theme extends common { $this->addOutput([ 'title' => $text['core_theme']['header'][1], 'vendor' => [ - 'tinycolorpicker' + 'tinycolorpicker', + 'tinymce' ], 'view' => 'header' ]); diff --git a/core/module/theme/view/header/header.php b/core/module/theme/view/header/header.php index 0ba6a1a..2e44d73 100644 --- a/core/module/theme/view/header/header.php +++ b/core/module/theme/view/header/header.php @@ -3,18 +3,8 @@ include('./core/module/theme/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_theme.php'); // Passage de la langue d'administration à Tinymce ?> - -'; -echo ''; -echo ''; -echo template::formOpen('themeFooterForm'); - -echo template::formOpen('themeHeaderForm'); -?> + +
addOutput([ 'title' => $text['blog']['add'][1], 'vendor' => [ - 'flatpickr' + 'flatpickr', + 'tinymce' ], 'view' => 'add' ]); @@ -704,7 +705,8 @@ class blog extends common { $this->addOutput([ 'title' => $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(2), 'title']), 'vendor' => [ - 'flatpickr' + 'flatpickr', + 'tinymce' ], 'view' => 'edit' ]); diff --git a/module/blog/view/add/add.php b/module/blog/view/add/add.php index 9807ded..2bb31bd 100644 --- a/module/blog/view/add/add.php +++ b/module/blog/view/add/add.php @@ -6,12 +6,10 @@ include('./module/blog/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . // Passage de la langue d'administration à Tinymce et flatpickr $lang_admin = $text['blog_view']['add'][24]; $lang_flatpickr = $text['blog_view']['add'][25]; -?>'; -echo ''; -echo ''; +?> + -echo template::formOpen('blogAddForm'); ?> +
getData(['config', 'i18n', 'langAdmin']) . // Passage de la langue d'administration à Tinymce et flatpickr $lang_admin = $text['blog_view']['edit'][24]; $lang_flatpickr = $text['blog_view']['edit'][25]; -?>'; -echo ''; -echo ''; +?> + -echo template::formOpen('blogEditForm'); ?> +
addOutput([ 'title' => $text['news']['add'][1], 'vendor' => [ - 'flatpickr' + 'flatpickr', + 'tinymce' ], 'view' => 'add' ]); @@ -376,7 +377,8 @@ class news extends common { $this->addOutput([ 'title' => $this->getData(['module', $this->getUrl(0),'posts', $this->getUrl(2), 'title']), 'vendor' => [ - 'flatpickr' + 'flatpickr', + 'tinymce' ], 'view' => 'edit' ]); diff --git a/module/news/view/add/add.php b/module/news/view/add/add.php index 1c4b7cc..4404258 100644 --- a/module/news/view/add/add.php +++ b/module/news/view/add/add.php @@ -5,12 +5,9 @@ include('./module/news/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . // Passage de la langue d'administration à Tinymce et flatpickr $lang_admin = $text['news_view']['add'][12]; $lang_flatpickr = $text['news_view']['add'][13]; -?>'; -echo ''; -echo ''; +?> -echo template::formOpen('newsAddForm'); ?> +
getData(['config', 'i18n', 'langAdmin']) . // Passage de la langue d'administration à Tinymce et flatpickr $lang_admin = $text['news_view']['edit'][12]; $lang_flatpickr = $text['news_view']['edit'][13]; -?>'; -echo ''; -echo ''; +?> -echo template::formOpen('newsEditForm'); ?> +